views:

354

answers:

1

i wonder if HTML5 Web Storage will be cleared when browser clears its cache? if it did, many ppl like me may lose data if i accidentally clear cache? or like in this comment ...

Since HTML5 local storage is kept separate from js cookies (like Silverlight, Gears, Flash), it opens up a world of 3rd party privacy issues for HTML5 as these objects will likely NOT get deleted with a clear cache or delete temporary data

... where web storage is not cleared, but leads to privacy issues?

+1  A: 

To quote the Mozilla Developer Center:

DOM Storage can be cleared via "Tools -> Clear Recent History -> Cookies" when Time range is "Everything" (via nsICookieManager::removeAll)

Note that Flash cookies, OTOH, are quite a bit harder to remove.

Ms2ger
so i guess if i just accidentally press clear cache, i lose my data, but nvm, i guess its same as deleting a file accidentally
jiewmeng