Implement quota management and StorageManager API #11525
Labels
runtime
Relates to code in the runtime crate
suggestion
suggestions for new features (yet to be agreed)
web
related to Web APIs
With local storage, blob storage, but also with the likes of IndexedDB and CacheStorage, and potentially the DENO_DIR, we need a more mature centralised location to do quota management for objects we persist to disk. All browsers implement some form of quota management.
How Mozilla/Firefox deals with it is discussed here: https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Browser_storage_limits_and_eviction_criteria
Chromium is discussed here: https://web.dev/storage-for-the-web/
Chromium and Firefox implement that StorageManager API.
The storage manager API though requires an origin, and that gets into the debate of the "origin-less" usage of Deno.
The text was updated successfully, but these errors were encountered: