Persistence of data in indexeddb when iphone overall storage space low

- Hi all,


I am building an offline web application and would like for it to work offline.


To do that i will probabily be using appcache or service workers.


Regardless, in Chrome on android, if the overall storage space is low, the data stored in indexeddb is deleted, same goes for firefox,

UNLESS you specify in both browsers that you want your data to be persisted, aka it will not be deleted unless the end-user clears it.


Here are the links for firefox and chrome.


https://developers.google.com/web/updates/2016/06/persistent-storage - Chrome

https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Browser_storage_limits_and_eviction_criteria - Safari


The bottom line is I want my data stored in indexeddb to be persisted unless ofcourse the user deletes it and not be cleared automatically when the OS space is low, as that is what I heard is the mechanism by which safari does it.


I cannot find any information on this crucial thing on the internet.

Persistence of data in indexeddb when iphone overall storage space low
 
 
Q