Each origin's IndexedDB, Cache API, Origin Private File System and service worker registrations sit in one storage bucket with one quota. The Storage Standard leaves the size to the browser, and each sets its own policy:
- Chrome: an origin may use up to 60% of the disk, all origins 80%.
- Firefox: best-effort data gets the smaller of 10% of the disk or 10 GiB per site (all origins under one registrable domain); persistent data up to 50% of the disk.
- Safari 17+: about 60% of the disk per origin in Safari, 15% in other apps that embed web views.
localStorage and sessionStorage have their own 5 MiB limit, and cookies theirs.
Measuring. navigator.storage.estimate() resolves to { usage, quota }, both deliberately approximate: browsers compress, deduplicate and pad. Since Chrome 133 it reports quota as usage + 10 GiB rather than the real limit, to resist fingerprinting. Cross-origin responses cached without CORS (opaque responses) are counted at far more than their size. Writing past the quota rejects with QuotaExceededError.
Eviction. Storage is best-effort by default. When the disk runs low or the browser's total limit is hit, it deletes data one whole origin at a time, least recently used first. navigator.storage.persist() asks to make the bucket persistent, which only the user can then clear. Chrome grants or denies silently based on engagement, installation, bookmarks and notification permission; Firefox asks the user; Safari uses heuristics such as being a Home Screen web app.
Safari also deletes a site's script-written storage after seven days of Safari use without user interaction, except for Home Screen web apps.
Partitioning. In a third-party iframe, Chrome 115+ and Firefox 103+ key storage by top-level site as well as origin, so an embed gets separate data, and quota, on every site.