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
2010-07-03 03:34:01
Right, localstorage is like a bigger/more organized cookie system, but not any more reliable.
Mark
2010-07-03 03:36:04
To add onto the previous comment ... *nothing* is ever reliable on the client.
Matt
2010-07-03 03:39:36
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
2010-07-03 04:23:23