This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
Support for Persistent Storage in Web Browsers #2937
Labels
env:Chrome
env:Firefox
kind/enhancement
A net-new feature or improvement to an existing feature
kind/maybe-in-helia
Context
Right now every js-ipfs repo created in web browser context is created in the default, "temporary" storage space provided by the browser.
This means:
Motivation
This is usually ok, as data cached in js-ipfs is expected to "disappear" (as in: go offline) when user closes the tab and app developers add some middleware responsible for pinning/persisting user data anyway.
That being said, there should be a programmatic opt-in to use persistent storage in the browser, just in case someone really wants data to be around, or expect a lot of data to be downloaded by their web app and don't want it to get GC'd. Imagine a game / VR app which is using IPFS for asset storage etc.
Note on this being vendor-specific
Below are only initial notes.
Make sure to re-check before starting work, as vendors may have changed it.
What needs to happen?
References
The text was updated successfully, but these errors were encountered: