I recently came across this article: offline-cookbook , which reads:
Your source is given a certain amount of free space to do what he wants. This free space is shared between all storage storages : LocalStorage, IndexedDB, File System and, of course, Cache.
the amount is not indicated , it will differ depending on the conditions of the device and storage conditions. You can find out how much you have:
navigator.storageQuota.queryInfo("temporary").then(function(info) { console.log(info.quota); // Result: <quota in bytes> console.log(info.usage); // Result: <used data in bytes> });
The above code may not work in all browsers . (e.g., in chrome <48, you might have to look for webkitPersistentStorage, etc.)
Other useful information / resources
According to Addie Osmani Offline Storage for Progressive Web Applications
In Chrome and Opera : your storage is at the beginning (not the API). Both storage engines will store data until a browser quota is reached. Applications can check how many quotas they use with the quota management API (as described above).
Firefox no limits, but will be queried after storing data at 50 MB
Mobile Safari 50 MB maximum
Desktop Safari unlimited (tooltips after 5 MB)
IE10+ maxes at 250 MB and prompt at 10 MB
A more detailed guide to working with quotas in mobile browsers from Eiji Kitamura.
At the moment, these are the most relevant articles / solutions found for my problem. If anyone knows any better article or spec, please share.
Nachiketha Feb 29 '16 at 9:54 on 2016-02-29 09:54
source share