browsersays

What your browser can keep on your computer

Question 3 of 6 · 6 things to read

Everything in this section is about persistence: what a website can write to your machine, how much of it, and whether it survives after you close the tab. Cookies are the part of this that everyone has heard of, and they are not the largest part.

The Storage Manager tells a site how much room it is allowed and how much it has used. That allowance is derived from the free space on your disk, which is why browsers pad and round it — an exact figure would describe your machine rather than the site's usage.

A service worker is the most durable item on the whole leaflet. It is a script that a site registers once and that then exists independently of any tab: it can answer that site's network requests, serve content while you are offline, and wake up before your next visit reaches the network. It is why clearing cookies alone is not the same as clearing a site.

The two deprecated quota interfaces here are worth a moment. Both were superseded years ago and neither has been removed, and both carry a vendor prefix in their names. A browser carrying them is telling you which engine family it descends from, whatever its user agent claims.

The 6 entries in this question

navigator.storage The Storage Manager: how much space a site may use, how much it has used, and how to ask for storage that survives a cleanup. Present everywhere.
navigator.storage
navigator.storageBuckets Independent storage partitions a site can create, each with its own quota, durability and expiry. New, Chromium-only, and specific about the browser.
navigator.storageBuckets
navigator.webkitTemporaryStorage A deprecated quota interface Chromium still carries a decade after its replacement shipped. What it does, and why the vendor prefix is the interesting part.
navigator.webkitTemporaryStorage
navigator.webkitPersistentStorage The permanent counterpart to the deprecated temporary-quota interface. Why the pair travels together and what a browser carrying one but not the other implies.
navigator.webkitPersistentStorage
navigator.serviceWorker Background scripts that outlive the page and can answer requests when you return. What a site can leave behind, and why it needs a secure origin.
navigator.serviceWorker
navigator.locks The Web Locks interface coordinates tabs on the same site — which also means it can reveal that other tabs of that site are open.
navigator.locks

Read this question on your own browser

This page describes what the 6 entries are. The leaflet on the front page prints your own browser's answer beside each one, in the same order they appear here, together with how many other browsers give the same answers.

Read my browser · All six questions and every property · How each line is produced