Impact for my app: high (it may explain data corruptions that some of our users are facing, and we can’t risk losing data)
Do you currently have a workaround? No. (as this is a browser flag dedicated for this purpose.)
As an app, we would like that our data will not be evicted.
data eviction is a process that chrome does whenever the computer is running low on storage.
as long as your data is not marked as persistent, chrome may delete your persistent web storage to clear up space.
Data Eviction may cause issues like data corruption or full local storage deletion.
in order to prevent data eviction, you are required to call :
navigator.storage.persist()
there’s also a parallel call to check if you are already persisted:
navigator.storage.persisted()
when calling persist, Overwolf will always return false
:
in a regular browser environment, the exact same call will return true
:
you can read more about:
- Data Eviction: Storage for the web
- Persistent Storage: Persistent storage