Summary
- RFC 9111, June 2022, is the specification for HTTP caching, and its central question is not where to keep bytes but how long a stored answer may still be used.
- Reuse is guarded: "when presented with a request, a cache MUST NOT reuse a stored response unless" a list of conditions holds, beginning with the target URI matching.
- The directives are expiry dates on trust:
must-revalidatemeans "once the response has become stale, a cache MUST NOT reuse that response ... until it has been successfully validated".
A cache is a bet, not a copy
Every cache answers without asking. That is the entire benefit and the entire risk, and they are the same thing: the client cannot tell a fresh answer from a slightly stale one, because both arrive at the same speed, in the same format, with the same confidence.
The specification's answer is not to make caches trustworthy. It is to make them arithmetic: the origin publishes a time budget, and the cache computes against it instead of trusting its own feelings about recency.
Freshness is arithmetic
Freshness lifetime is a number. Age is a number. The decision between them is a comparison, and the comparison is the whole protocol.
Heuristic freshness exists for responses that never declared a lifetime: a guess, with a documented ceiling, for origins that could not be bothered. Even the guess has to be written down, which is the point.
Arithmetic is what makes caching auditable. Two caches holding the same headers must reach the same decision, which is the only way a browser, a proxy and a CDN can agree without ever speaking to each other.
Reuse needs more than a URL match
A stored response may be reused only if the request method matches, the target URI matches, and the selecting headers agree. Vary names those headers, so a cache knows that one URL can mean different things to different requests.
That is the line where caching stops being a filing cabinet and becomes a judgement about which differences matter. Get Vary wrong and the cache will serve the mobile page to a desktop, or the German page to a Texan, at scale and without complaint.
When trust expires
Validation is the second act. The cache asks whether its copy is still current, and a 304 refreshes the lifetime without resending the body — the cheapest conversation on the Internet, and the one that keeps the arrangement honest.
The directives around staleness are where the politics live. must-revalidate forbids serving stale without asking; others permit serving stale while asking. Each choice is a statement about what a stale answer costs, and who pays for it.
What caches hide, and who pays
Caches fail silently. A wrong freshness lifetime serves the wrong page, cheerfully, to everyone, and the bug report lands on the content team because it looks like a content bug.
The bill goes to whoever is visible: the site that published the number. That is exactly why the protocol insists the number come from the origin rather than from an intermediary's preferences. Authority to answer on someone's behalf should be issued by the party that bears the consequence, not assumed by the party that happens to sit in the middle.
The lesson about time contracts
Caching works because the protocol asks the origin to state how long its word is good for, and asks every intermediary to do the same arithmetic with it.
The general lesson is bigger than HTTP. When a system may answer on your behalf, make it publish the expiry of its authority, not just the content. An intermediary without a clock is an intermediary with an opinion — and opinions, at scale, are how a small header becomes a large outage.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






