Skip to content Skip to sidebar Skip to footer

How Do I Make The Data Of A Web App "persistent" As Opposed To "best-effort"? I Want To Avoid The Data Being Cleared When There Is Not Enough Space

According to https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/persist you can mark a box as 'persistent' as follows: if (navigator.storage && navigator.stora

Solution 1:

Clearing recent history in Chrome and Firefox counts as an 'explicit user action'. You should get a confirm dialog, even if it does not mention 'storage'. The average user would not even know what 'persistent storage' is.


Post a Comment for "How Do I Make The Data Of A Web App "persistent" As Opposed To "best-effort"? I Want To Avoid The Data Being Cleared When There Is Not Enough Space"