Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 local storage and Chrome

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?

like image 344
jack33 Avatar asked Jul 03 '10 03:07

jack33


People also ask

Does Chrome support local storage?

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”.

Does HTML5 support local storage?

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.

Does localStorage work across browsers?

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.

How do I use local storage in Chrome?

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.


2 Answers

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.

like image 139
Matt Avatar answered Oct 08 '22 02:10

Matt


In chrome 19 now. I ran ccleaner yest, but my webStorage data was still persistent (atleast for my chrome extension).

like image 44
Playmaker Avatar answered Oct 08 '22 01:10

Playmaker