← Glossary

What Are Supercookies?

Supercookies is an informal name for identifiers that persist beyond the reach of ordinary cookie controls, whether hidden in browser caches, reconstructed from several storage locations, or injected into traffic by a network operator. There is no single supercookie technology.

Updated:

Supercookies are not a type of HTTP cookie. The word is a label applied to any mechanism that stores or reconstructs a user identifier in a way that survives the actions people take to remove cookies. Mozilla's security blog describes them plainly as something that can be used in place of ordinary cookies to store user identifiers, but which is much more difficult for users to delete and block. Because the term describes an effect rather than an API, it has been attached to very different techniques over the years: identifiers hidden in browser caches, identifiers rebuilt from a dozen storage locations, flags abused as bits of a tracking number, and headers inserted into web traffic by a carrier. What they share is persistence beyond the user's expectations, and that is the property worth understanding.

What the Term Can Mean

At least four distinct families have been called supercookies.

  • Cache-based identifiers. A tracker serves a resource with a unique value embedded in it, such as an image or an ETag header, and the browser caches it. On a later visit, code may read that cached value, or an ETag may return in a conditional request, allowing recognition without an ordinary cookie. Different techniques have exploited resource caches and remembered network state; they do not all expose values in the same way.
  • Protocol-state identifiers. Some browser features remember a decision per host. HTTP Strict Transport Security records that a host must be reached over HTTPS; by setting that flag on a pattern of subdomains, a tracker can encode bits of an identifier and read them back by observing which hosts the browser upgrades. Alternative service hints have been abused the same way.
  • Respawning identifiers. A script writes the same identifier into several places at once, such as cookies, localStorage, IndexedDB and cache, and restores it to any location the user has cleared. Historically this also used plugin storage, which is no longer available in modern browsers. The term evercookie is often used for this approach specifically.
  • Network-injected identifiers. A network operator adds a header carrying a subscriber identifier to unencrypted HTTP requests passing through its infrastructure. The browser never stores anything, so clearing it changes nothing, and recipients of the modified requests may receive it. Encrypting the request end to end prevents an ordinary intermediary from adding that HTTP header.

None of these is a standard, and none is reliable across browsers. They are tricks that exploit a storage area or signal whose purpose was something else.

Storage, Network and the Persistence of Identifiers

What makes these persistent identifiers effective is that the places they live are not covered by the controls users associate with cookies. A control that clears only cookies may leave caches untouched; broader site-data controls can remove additional storage; HSTS state may have its own, less visible, clearing path; and a header added by a carrier is outside the browser entirely. The identifier also tends to be shared across sites, because some caches and protocol state were historically shared across top-level sites, not by the site the user was visiting. A tracker embedded on many sites could therefore read the same cached value everywhere.

That cross-site readability is what modern browsers have attacked. Mozilla's network partitioning, introduced in Firefox 85, keys the HTTP cache, image cache, favicon cache, HSTS cache, font cache, DNS cache, alternative-service cache and connection pools by the top-level site being visited, so a value cached while visiting one site is invisible when the same tracker loads on another. That change targeted sharing between sites, while still allowing the browser to reuse resources on a return visit to the same site. Comparable partitioning exists in other engines, and Chrome introduced HTTP cache partitioning using both the top-level site and the current-frame site. Partitioning does not delete the identifier; it restricts reuse through that partitioned store across sites. This reduces one route for supercookie tracking, without excluding linkage through accounts or other signals. The network-injection family is addressed differently: HTTPS prevents an ordinary intermediary without decryption access from adding HTTP headers, which is one of the less-discussed reasons encryption of ordinary web traffic matters.

Supercookies Compared With Ordinary Cookies and Evercookies

PropertyOrdinary cookieEvercookie-style respawningCache or protocol-state supercookieNetwork-injected header
Set byServer via Set-Cookie or scriptScript writing to many storesServer via cached resource or protocol flagNetwork operator
Visible in cookie settingsYesPartlyNoNo
Removed by clearing cookiesYesOnly until respawnedNoNo
Blocked by cross-site partitioningThird-party use, in partitioning browsersLargely, for cross-site linkageYes, for cross-site linkageNot applicable
Defeated by HTTPSNoNoNoYes

The supercookie vs cookie distinction is therefore about control. An ordinary cookie, even a persistent one with a long expiry, is set through a cookie API or header, listed in the browser's settings and removed when the user asks. A supercookie exists precisely to escape that bargain. A long-lived first-party cookie used for login is not a supercookie; a value hidden in the favicon cache to recognise a visitor who deleted their cookies is.

Why the Techniques Mattered and What Remains

These methods appeared because third-party cookies were being blocked and deleted, and advertising measurement wanted continuity. Regulators responded to the most visible cases, and browser vendors responded with protections through partitioning, cache isolation and tighter clearing controls. The result today is that the classic cross-site supercookie is far less effective in current versions of major browsers, though the underlying idea persists in new forms, while fingerprinting and server-side identity graphs remain separate ways of linking activity. Those methods should not automatically be called supercookies: their mechanisms and available controls differ.

Limits of the Term and of the Defences

Because supercookie is informal, descriptions of it often mix retired techniques with current behaviour. Plugin storage no longer exists in mainstream browsers, HSTS abuse has been constrained, and partitioned caches have closed the simplest cache tricks. Equally, defences are partial: partitioning protects against cross-site linkage but not against a single site recognising its own returning visitors through its own cache, and private browsing modes discard state only at the end of the session. Clearing cookies remains a weaker action than people assume, and the honest summary is that persistent identification can be made harder in every current browser but cannot be ruled out by any single setting.

Frequently asked questions

Is a supercookie an HTTP cookie?

Not in the usual sense. The term describes identification outside ordinary cookie controls, including cached values, protocol state, respawning and injected headers. A respawning scheme may also recreate a normal HTTP cookie from another stored copy of its identifier.

Does clearing cookies remove every identifier?

No. Caches, HSTS state and other storage may keep identifiers unless they are cleared separately, scripts can rewrite a cleared value from another store, and a header added by a carrier is never on the device at all. Clearing cookies is one step, not a complete reset.

Is every persistent cookie a supercookie?

No. A persistent cookie with a long expiry still uses ordinary cookie mechanisms and is visible to the browser's controls. Supercookies are named for persistence outside or around those controls, rather than for a long lifetime alone.

How do modern browsers limit supercookies?

Mainly by partitioning caches and network state by the top-level site, so a value cached while visiting one site cannot be read when the same tracker loads on another. Firefox introduced this network partitioning in version 85, and other engines apply similar isolation.

Does HTTPS stop network-level supercookies?

HTTPS prevents ordinary network intermediaries from adding HTTP headers inside an encrypted request. It does not stop a trusted TLS-interception endpoint or the receiving server from changing headers, and it does not remove identifiers stored or rebuilt inside the browser.