3 ms·
You can request this via https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/persist https://developer.mozilla.org/en-US/docs/Web/API/StorageMana...
by kevincox 3y ago
You can request this via https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/persist https://developer.mozilla.org/en-US/docs/Web/API/StorageMana....
If the browser reports that the request was granted that storage should not be cleared except by explicit user request.
- jsheard 3y agoIn practice there are limits, it would be very rude to let random websites fill your entire disk until you manually clear the storage. This page tests how much you can store in practice, the current versions of Chrome and Firefox both seem to barf after storing just 10MB: https://arty.name/localstorage.html https://arty.name/localstorage.html . What I meant by a persistent data permission is adding an explicit permission prompt which allows an app to bypass that limit and store any amount of data, if the user allows it, which you can't currently do.