views:

166

answers:

1

I am looking to build a offline application. I would like to know how clearing of cache works in Google Chrome. If the user deletes his cookies, would his offline content disappear as well?

+2  A: 

I am running Chrome v 5.0.370. When I perform the "Delete cookies and other site data" from the "Clear Browsing Data" dialog, localStorage is in fact wiped out.

Now, to be literal, if the user fires up Webkit Inspector, opens the Storage tab, and only deletes cookies, then localStorage will not be affected.

But I assume you mean through the normal dialog.

Matt
Right, localstorage is like a bigger/more organized cookie system, but not any more reliable.
Mark
To add onto the previous comment ... *nothing* is ever reliable on the client.
Matt
Yes, with all the HTML5-like native application hype with local storage - this is quite a bummer.. I know a lot of people do use delete history sometimes (even when not using personal computer) - and this kinda makes the local storage no more reliable than cookies...
jack33