Which Browser Storage? localStorage, IndexedDB, Cache API, OPFS, cookieStore and Quota Management
Put a small preference in localStorage, queryable records in IndexedDB, HTTP responses in the Cache API, files in OPFS and values the server also reads in cookieStore; all share the origin's quota and can be evicted without persist(). In Chromium 158 and WebKit 27.2 we show localStorage's 5 MiB limit, the Cache API ignoring max-age, OPFS failing in an ephemeral session, estimate()/persist() results and Safari's 7-day deletion rule.
15 Nov 2026
·
15 min
·
9