Re: [whatwg/storage] StorageEstimate.quota + Storage Pressure (#73)

> FWIW, I'm not a 100% on making quota per-bucket rather than keeping it per-origin. 

One use case I'm aware of are sites that manage an opportunistic cache of resources in cache_storage.  They implement their own eviction algorithm to keep the cache with the desired max size.  Having some kind of bucket with a quota might help with this use case.

However, these sites also generally don't want to wipe just fail writes when they hit the limit or cause the entire bucket to get evicted.  They want LRU eviction of some resources to reduce the size.  Unless we add that kind of policy to buckets (which it seems we're unsure of) then maybe this use case is not really helped.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/storage/issues/73#issuecomment-535937978

Received on Friday, 27 September 2019 13:26:20 UTC