Skip to content

Persistent storage using navigator.storage.persist() #2656

Description

@davidsm10

There is the navigator.storage.persist() API that allows the storage for a site/origin to become persistent (and maybe increase the limit) and I think it would very useful to use it on this project to prevent the browser from deleting the docs if you are running low on storage or you haven't used this page in a while, or even to increase the storage limit for people that download many docs for offline use.
Of course it should be optional. I think the best way to add this would be adding a button in the offline data section that the user can choose to click if they want to make the storage persistent.

https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/persist

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions