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?
Google Chrome/ChromiumChrome treats cookies and local storage as the same thing, so these steps work for both. Click on the menu button in the top-right corner of your Chrome window. Select “Settings” from that menu. Click “Cookies and site permissions”.
With web storage, web applications can store data locally within the user's browser. Before HTML5, application data had to be stored in cookies, included in every server request. Web storage is more secure, and large amounts of data can be stored locally, without affecting website performance.
The localStorage read-only property of the window interface allows you to access a Storage object for the Document 's origin; the stored data is saved across browser sessions.
Just go to the developer tools by pressing F12 , then go to the Application tab. In the Storage section expand Local Storage. After that, you'll see all your browser's local storage there. In Chrome version 65, you can manually modify and add new items.
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.
In chrome 19 now. I ran ccleaner yest, but my webStorage data was still persistent (atleast for my chrome extension).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With