Somewhere between the server that wrote a page and the screen showing it, a machine you will never meet decides whether you get today’s version or last Tuesday’s. It is not being reckless. It holds a licence — a paragraph of RFC 9111, the June 2022 Standards Track document that defines “HTTP caches and the associated header fields that control cache behavior or indicate cacheable response messages”, and that retired RFC 7234 in the process.

The paragraph is a permission to guess.

HTTP caching is the least glamorous and most load-bearing efficiency in the stack. It is why the Internet does not drown in its own repeat traffic. Its correctness rests on five conditions and one expiration time, and the expiration time is the part origins routinely forget to send. So the specification does what no engineer would design from a blank page: it lets the middleman estimate.

That estimate has a history, a deleted number at its centre, and a habit that outlived the sentence that started it.

Seven names, one shrug, June 1999

RFC 2616 arrived in June 1999 with seven names on the cover — Fielding, Gettys, Mogul, Frystyk, Masinter, Leach, Berners-Lee — and consolidated HTTP/1.1 into the document a generation of engineers learned to argue with. Buried in its caching chapter was a piece of arithmetic so modest it barely counts as a rule.

Origin servers, the authors observed, do not always send an expiry. When they don’t, a cache may invent one from the response’s Last-Modified date. The heuristic should be no more than some fraction of the interval since that date — and then came the sentence that would follow the web for two decades: “A typical setting of this fraction might be 10%.”

Ten percent. Not a bound. Not a requirement. A “might be”, with a shrug folded into it.

There is a small irony in the byline. The first name on RFC 2616 belongs to Roy Fielding, who a year later published the dissertation that named REST — the architectural style whose central discipline is that the server keeps no client state between requests. Statelessness is the theory. Caching is the accounting that makes the theory affordable.

The 1999 text was already a repair job. HTTP/1.0 had offered Expires and a Pragma: no-cache that was defined as a request header and is still, decades later, cheerfully sent in responses by servers that never read the definition. HTTP/1.1 added Cache-Control and Vary because the earlier vocabulary could not express what operators needed to say.

Five conditions before a cache may reuse anything

RFC 9111 states the reuse test as a prohibition with an escape clause: “When presented with a request, a cache MUST NOT reuse a stored response unless” five things hold. The target URI matches. The stored response’s method permits it for this request. The request fields the response nominated — its Vary list — match. No directive on the stored response forbids reuse. And the stored response is fresh, permitted to be served stale, or has just been successfully validated.

Each clause is a scar from a deployment that got it wrong. Method matching exists because a cached answer to a GET is not an answer to a POST. URI matching exists because a shared cache keys on the address. The nomination rule exists because one address can serve many bodies. The freshness clause exists because a correct answer from last year is still last year’s answer.

Read the grammar and you have the constitution: MUST NOT, unless. Prohibition is the default; permission is the exception that has to be earned five times.

Vary is where afternoons go to die

A response can name the request fields that selected it, and a cache that ignores the list will confidently serve one variant in place of another: a gzipped body to a client that never asked for compression, a German page to a reader in Osaka, a desktop layout to a phone on a train.

The specification keeps one blunt escape hatch. A Vary value of “*” always fails to match, which is protocol shorthand for: never reuse me, ever.

Vary has been in HTTP/1.1 since RFC 2068 in January 1997, which makes the header older than most of the engineers who now misconfigure it.

The 10 percent rule leaves the specification

In June 2014, RFC 7234 split caching out of the ageing 2616 and rewrote it. The permission to guess survived. The arithmetic did not. The ten percent line was gone, replaced by the sentence RFC 9111 still carries: the specification “does not provide specific algorithms, but it does impose worst-case constraints”.

Eight years later, RFC 9111 — Fielding again, this time with Mark Nottingham and Julian Reschke — kept the same silence. Three authors, a cleaner document, and no number anywhere in it.

The number, of course, did not leave. It is in code comments and conference slides and the reflex of an engineer who needs a freshness lifetime by Friday. A sentence deleted from a standard in 2014 is still setting clocks today.

That is what software lock-in actually looks like. Not a vendor with a contract. A habit that outlived its source.

Age, validation, and a bargain nobody signed

Everything a cache holds gets an age, computed rather than trusted. When freshness runs out, the cache revalidates. It may also serve the stale copy while it refreshes — the stale-while-revalidate extension from RFC 5861, published in May 2010 by Mark Nottingham, who twelve years later would co-edit the caching specification itself.

And underneath all of it sits an asymmetry that explains the whole design: a cache is never obliged to store anything. It can always choose to fetch. The protocol hands the intermediary a licence to remember and no duty to.

Which is why the failure mode is one-sided. A wrong guess is invisible to the origin, cheap for the cache, and repeated for every user standing behind it.

Why the design holds anyway

A specification is not a law and has no police. It is a treaty among strangers who agree to be bored by the same document, and its authority is that implementations agree to be checked against it. HTTP caching works because the rules are written where both sides can read them, and because the cheapest large-scale efficiency the web has ever found is a shared memory with published conditions.

The cost is that a licensed guess becomes part of the interface, and interfaces get copied. Every cache that estimates a lifetime from a modification date is quoting a sentence its author deleted, and every user behind it inherits the estimate.

The specification stopped guessing in 2014. The web has been guessing on its behalf ever since.