Anti-Bot / Research Note

ST—008

When Browser Caches Become Identifiers

How browser caches can carry chosen identifiers, with WebGL tests of restarts, private contexts, storage clearing and record renewal.

Conceptual compilation-state pair for a chosen bit of one. Before reading, the zero candidate is cold and the one candidate is warm. After reading both candidates, both are warm.

Research context

Test date

A page does not need to save an identifier as a cookie to leave something recognizable behind. It can change which work the browser has already done, then look for the difference later.

Security decisions, downloaded icons and graphics compilation can all create remembered state. If a page can deliberately shape that state, and another visit can distinguish the result, a performance or security feature can become a place to carry bits.

Supercookie research has explored this through several different browser features. HSTS and favicon caches make the idea concrete. Shader and pipeline compilation add another surface, where timing can reveal whether the browser has encountered a workload before.

Our first WebGL pilot recovered all eight written records on their first read, including four between two local sites. None of those four cross-site records was recovered completely on a second read.

We then ran 90 follow-up records across Chrome and Firefox. In Chrome, rendered records survived process restarts, the tested storage-clearing operations and private-context transitions. Replacing the profile stopped complete recovery, even when we retained the isolated Mesa cache. Fresh pairs also let us preserve recovered values through three renewal cycles.

The first read recovered the record. It also changed the state carrying it.

This note connects the earlier research to our measurements, explains how timing can encode a bit, and tests what happens beyond the first successful read.

What this piece establishes

  • State can be planted, not just fingerprinted. The writer chose the bits. The reader tried to recover that choice from compilation timings.
  • Restarting was not enough to erase the signal. Rendered records were recovered after all three tested process restarts in each browser.
  • Profile boundaries mattered. No complete record crossed into a fresh Chrome profile in our follow-up, with or without the isolated Mesa cache retained.
  • Our reader was destructive, but the value could be renewed. Measuring both candidates warmed both. Rewriting the recovered value into fresh pairs preserved it through three controlled renewal cycles.

Security decisions can carry bits

HSTS tells a browser to use HTTPS for a host on future visits. Remembering that decision is useful security behavior, but a collection of remembered decisions can also represent data.

In its 2018 explanation of HSTS abuse, WebKit described a tracker setting HSTS state for selected hosts. An entry could represent one bit value, and its absence the other. Later requests could reveal which hosts were automatically upgraded to HTTPS, reconstructing the identifier.

WebKit also documented mitigations against this use of HSTS state.

The useful lesson is that a feature does not need a general-purpose storage API to hold data. A choice the browser remembers can be enough.

Favicon caches made the same question visible elsewhere

The 2021 paper Tales of Favicons and Caches: Persistent Tracking in Modern Browsers, by Konstantinos Solomos, John Kristoff, Chris Kanich and Jason Polakis, examined a different kind of remembered state.

Their technique encoded an identifier through entries in the dedicated favicon cache. On later visits, a sequence of subdomains let the server observe which icons the browser requested and reconstruct the identifier. The paper reported persistence and isolation problems in its tested browser versions.

HSTS and favicons use different mechanisms, but both illustrate the same question: can a website deliberately leave a pattern that another visit can recognize?

From resource caches to compilation state

Graphics applications also benefit from remembering earlier work. Preparing shaders and pipelines can be expensive, so implementations can cache compilation results. A later request may finish faster when reusable state already exists.

The WebGPU specification’s privacy discussion explicitly identifies compilation timing as a possible cross-origin information leak. It also recognizes that a GPU driver can maintain its own caches, beyond those in the browser, and discusses separating compilation state between storage partitions.

That distinction matters. Browser caches, graphics translation layers and driver caches are different places where work may be reused. A fast second compilation, by itself, does not locate the responsible layer. Nor is compilation caching the same thing as a hardware cache side channel measuring contention while another workload runs.

Igor Santos-Grueiro’s June 2026 preprint What Browsers Do in the Shaders: A Measurement Study of WebGPU Privacy investigates this more directly through WGPULens. It reports cold/warm pipeline measurements across selected origin, profile and browser placements. The paper attributes the signal to the browser/GPU stack without fully identifying the retaining layer. This provides a directly relevant research foundation for asking what compilation state remembers.

ShaderGhost presents a WebGL shader-cache identifier and reports persistence and cross-site recovery on its tested configurations. Its README also recognizes that reading warms both alternatives and describes renewing the record into fresh cache entries. Our experiments below examine persistence boundaries and renewal through fresh cache entries.

How a timing difference becomes a bit

Imagine a pair of distinct shader programs for each bit position. One represents zero and the other represents one. A writer prepares only the program corresponding to its chosen bit.

A later reader prepares both candidates. If previously prepared work is consistently faster, the timing difference can indicate which candidate the writer selected. Repeating that comparison across positions can recover a short record.

For an illustrative four-bit value, 1010, the writer would warm the one candidate in the first position, the zero candidate in the second, and so on.

Conceptual example for a written bit of one. Before the read, the zero candidate is cold and the one candidate is warm. The first read compiles both and compares their times. After the read both candidates are warm, so the original timing distinction is lost.
Conceptual candidate states before and after a read. Warm and cold refer to prior compilation work.

Several things must hold: candidates must remain distinguishable through compilation, timings must separate reusable work from new work, and the relevant state must survive until the reader arrives. Cross-site tracking additionally requires that state to cross a site boundary.

A 16-bit record has 65,536 possible values, and a 32-bit record has 4,294,967,296. Usable identifiers also depend on assignment collisions, recovery errors and state retention.

Stored choices and device fingerprints are different

A conventional fingerprint tries to recognize properties of a device or browser. A cache-state identifier deliberately changes something first. Its value can be chosen by the writer rather than inferred from the machine’s characteristics.

That makes the isolation question important. A browser could expose very little hardware identity yet still leak a previously planted pattern if compilation state is shared across a boundary that should separate sites.

Cookie storage and compilation state have different lifetimes. Our harness carried its payload through compilation state. In the follow-up, clearing the writer origin’s storage and the browser HTTP cache did not stop recovery.

Methodology

Initial pilot

On 6 November 2026, we tested a WebGL2 harness in Chrome 157.0.8103.38 on Linux. The reported graphics stack was an AMD Radeon 890M through ANGLE and OpenGL ES. Browser automation was attached, and other tabs remained open.

For each position, two fragment programs used different numeric constants affecting their output. We measured shader compilation and program linking through a blocking link-status query. The initial pilot measured compilation and linking only. The follow-up added draw commands.

The writer prepared one candidate per bit. After document replacement, a reader with a fresh WebGL context measured both candidates in randomized order. It received the candidate namespace and record length, while expected bits remained with the external controller. We compared guesses with those expected bits afterwards.

The harness did not store payloads in cookies, local storage or IndexedDB. We tested reloads at 127.0.0.1 and a site change from 127.0.0.1 to localhost. Both are loopback hosts.

WebGPU returned no adapter in either stage of testing. All measurements below use WebGL2.

Lifetime and isolation follow-up

Later, we ran two 39-record Chrome matrices and 12 separate Firefox records. Every follow-up record contained 32 bits. Each Chrome matrix used dedicated processes and three records per condition. Each trial started with a fresh isolated profile and a unique namespace. The writer chose random bits, while the reader still received only the namespace and length. One calibration record was excluded from the results.

The first Chrome matrix used the automation launcher’s default settings. During validation, we found ThirdPartyStoragePartitioning in its disabled-features argument. We repeated the complete matrix with that disabling override removed and recorded the actual browser command line. The main table below uses this second matrix. Both matrices retained the remaining automation settings.

The rendered variant added a triangle draw and pixel readback after each compilation measurement. Every recorded draw completed without a WebGL error and returned an opaque pixel. Drawing and readback were outside the compilation/link timer.

We redirected Mesa’s disk cache to a isolated directory using its documented cache-directory setting. That directory received cache files. This let us retain or remove that cache independently of the disposable browser profile.

Chrome writer and reader pages used unrelated HTTPS-origin names under reserved .test domains. The browser intercepted those requests and served the local fixture. This exercises distinct secure origins and sites using locally served fixtures.

For the clearing condition, we set a cookie and a local-storage marker, called Storage.clearDataForOrigin with all storage types and Network.clearBrowserCache, then verified both markers were gone before reading. Private-context tests used fresh off-the-record contexts within the dedicated browser. Restart tests closed the entire task browser before relaunching it.

We also ran 12 separate rendered records in Firefox 157.0.1: three each for reload, process restart, a change between two loopback sites and unwritten controls. Firefox used the same shader harness with HTTP loopback fixtures and WebDriver. Its exposed renderer label was “Radeon R9 200 Series, or similar”, unlike Chrome’s more specific AMD/ANGLE label.

Findings

First-read recovery and destructive rereads

Condition Records Correct bits Complete records recovered
Same-origin reload, two 16-bit and two 32-bit records 4 96 of 96 4 of 4
Different local site, four 32-bit records 4 128 of 128 4 of 4
Unwritten candidates compared with independently chosen random targets 4 71 of 128 0 of 4
Second read of previously read 32-bit records 4 70 of 128 0 of 4
Four records per condition. Every same-origin reload record and cross-local-site first-read record was recovered completely. No unwritten control or second-read record was recovered completely.
Each marker is one record. Filled markers indicate complete recovery. Unwritten targets are independently selected controls. All tests used the same machine.

In the local cross-site tests, per-record median times were 1.0–1.2 milliseconds for written candidates and 9.0–10.9 milliseconds for their unwritten counterparts. First-read recovery succeeded with either candidate order.

The unwritten control matters because the reader usually produces a guess even when no record was written. We implemented no validity tag or acceptance threshold, so these control results are not a false-positive rate for a complete identifier system.

Reading changed the record

The second-read result is the most useful complication. The reader compiles both candidates, including the one the writer left untouched. Afterwards, both have been prepared.

None of the four second reads recovered a complete record. With both candidates previously compiled, our timing comparison no longer reliably identified the original choice. This is consistent with the reader consuming the cold/warm distinction.

That separates a successful first read from a repeat-visitor system. Continued recognition needs additional state management and validation. We tested one part of that problem in the follow-up.

The renewal idea described by ShaderGhost addresses this kind of bookkeeping problem: preserve the recovered value in fresh state for a later visit. That is distinct from making the same warmed pair reveal its old distinction again.

Restart, clearing and private-context boundaries

Every row below contains three independently written 32-bit records in the Chrome matrix with the partition-disabling override removed. All records were tested on the same machine.

Rendered Chrome condition Correct bits Complete records recovered
Same-profile reload 96 of 96 3 of 3
Close and restart browser, retain profile 96 of 96 3 of 3
Fresh profile, retain isolated Mesa cache 43 of 96 0 of 3
Fresh profile, remove isolated Mesa cache 51 of 96 0 of 3
Clear origin storage and browser HTTP cache 96 of 96 3 of 3
Normal writer → fresh private reader 96 of 96 3 of 3
Private writer → normal reader 96 of 96 3 of 3
Private writer → new private context 96 of 96 3 of 3
Unrelated, locally served HTTPS sites 96 of 96 3 of 3
Unwritten random-target control 44 of 96 0 of 3
Rendered Chrome follow-up: all three complete records were recovered after restart, origin and HTTP-cache clearing, private-context transitions and a cross-site read. No complete record was recovered in either fresh-profile condition or the unwritten control.
Three 32-bit records per condition on one machine, with the partition-disabling launch override removed. Each marker is a record. Private-context rows share a browser. HTTPS fixtures were served locally.

The contrast matters. Retaining the profile across a process restart preserved recovery. Retaining the isolated Mesa cache while replacing the profile did not. For this harness, the retained Mesa cache alone was insufficient to recover the value in a fresh profile.

For comparison with the original workload, compilation-only reloads and process restarts each recovered 96 of 96 bits across three records in the second matrix.

The first, launcher-default matrix showed the same complete-record outcomes for every rendered condition in the table. Fresh-profile conditions and unwritten controls recovered no complete record, while the other rendered conditions recovered all three. Its compilation-only restart row recovered 95 of 96 bits, with two complete records out of three. That missed bit remains part of the evidence. A timing reader without error correction can lose the whole identifier through a single mistake.

Firefox also retained recoverable state across restarts

The separate Firefox checks recovered all 96 bits and all three complete records in each of the reload, process-restart and cross-loopback-site conditions. Its unwritten controls matched 32 of 96 random-target bits, with no complete record and 35 tied comparisons. Exact timing ties were left undecided and counted as incorrect, rather than forced into a bit value.

Firefox reproduced the reload, restart and cross-loopback-site results. Private-context, clearing and profile-replacement measurements were performed in Chrome.

Renewing the value worked with fresh pairs

For three more Chrome records, the controller read the initial value, wrote those recovered bits into a fresh namespace, reloaded and read again. It repeated that renewal three times per record. The renewal writer used the previous reader’s output, not the original ground truth.

In the main Chrome matrix, all three initial records were recovered completely. All nine subsequent renewal reads also recovered the original 32-bit value, totaling 288 of 288 matching bits in those renewal reads. The launcher-default matrix repeated the same outcome, giving 18 complete renewal reads across the two configurations.

This tests a useful distinction: reading can consume the old timing contrast while fresh pairs preserve the recovered value. Our external controller supplied the next namespace, and the harness had no self-discovery protocol, validity tag or error correction.

Limitations

We tested two browser versions on Linux. Other operating systems, devices and graphics drivers remain outside this study. The normal browser and other applications remained open, so GPU load was not isolated. Long-term retention, eviction under cache pressure and behavior after browser or driver updates also remain open questions.

The retaining cache layer remains unresolved. The fresh-profile result establishes a recovery boundary for this harness, while attributing that boundary to a specific browser or graphics component requires further investigation.

Chrome’s secure-origin tests used locally intercepted fixtures, and Firefox used loopback sites. Private-context results cover transitions within a running Chrome process. The clearing results apply to the named origin-storage and HTTP-cache operations. Other browsing-data settings may affect different state.

Renewal relied on an external controller to supply the next namespace. Longer renewal chains, autonomous record discovery and recovery from bit errors remain open questions.

What to look for in a supercookie claim

The earlier work and these experiments suggest four useful questions. What can the writer change? How does the reader recover it? Which boundaries does the state cross? What happens when the reader measures it again?

A first successful read answers only part of that sequence. Reliable identification also depends on retention, isolation, validation and the effect of reading. Those details explain whether a remembered optimization can become a lasting identifier.

What a mitigation has to separate

The WebGPU privacy discussion points to storage partitioning and possible per-partition differences in submitted shaders. The goal is to stop one site’s earlier compilation work from giving another site a recognizable signal, including when a driver maintains state beneath the browser.

Read noise, retention and deletion are separate questions. A less precise clock can make a timing comparison harder without proving the underlying state is isolated or cleared. Likewise, keeping browser caches separate would not by itself establish that every lower layer is separated. A mitigation claim needs a measured boundary, not just a setting name.

These considerations help define which boundaries a mitigation needs to protect.

Evidence checks

Reported counts were recomputed from the saved timings. We also checked candidate order, renewal inputs and draw/readback results. Raw observations, source hashes and analysis scripts are retained with the study records.

A remembered optimization can carry a chosen value. Whether it becomes a lasting identifier depends on what happens after the first read.

Found a mistake or a result you cannot reproduce?

Send a correctionReference: /articles/when-browser-caches-become-identifiers/

Research capture

100%