Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use navigator.storage.persist in browsers that support it #1216

Open
raucao opened this issue Feb 13, 2021 · 1 comment
Open

Use navigator.storage.persist in browsers that support it #1216

raucao opened this issue Feb 13, 2021 · 1 comment

Comments

@raucao
Copy link
Member

raucao commented Feb 13, 2021

This will prevent browsers from automatically clearing data from IndexedDB in any circumstances other than intentional clearing by the user.

https://web.dev/persistent-storage/

@raucao
Copy link
Member Author

raucao commented Feb 13, 2021

It is not recommended to do this on page load, or in bootstrap code, because the browser may prompt the user to give permission for this. Anyone has ideas for when we could/should do this instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant