The short version

  • HTTP freshness is a comparison — current age against freshness lifetime — and the Age header supplies only a fragment of one side of it.
  • A defensible cache decision is a receipt: timing, directives, validation, stale authority and the delivered bytes, joined in one record.

HTTP Age measures elapsed time, not freshness. Under RFC 9111, freshness is a comparison — current age against freshness lifetime — and the Age header supplies only a fragment of one side of that comparison. Which is why a cache can report Age: 20, look perfectly healthy on the dashboard, and still be handing out stale bytes under a permitted exception while the origin is unreachable.

Picture the tile. An operations dashboard reads Age: 20 from a cached configuration response and colours the delivery green. Twenty seconds. Nothing to see. Except the response also carries max-age=10, the origin is down, and the cache is serving it under an explicitly allowed stale condition. The header is accurate. The green tile is a lie.

That gap — between a number that is true and a conclusion that is false — is the whole of the freshness model, and the reason “is Age low?” is the wrong question to ask a cache.

Freshness is a comparison, not a number

RFC 9111 keeps two ideas apart that most monitoring stacks cheerfully weld together. A stored response is fresh when its current age has not exceeded its freshness lifetime, and stale when it has. The test is freshness_lifetime > current_age. Age is one input to current_age. It is not the lifetime, it is not the comparison, and on its own it is not evidence of anything.

A response aged 20 seconds is fresh with a 60-second lifetime and stale with a 10-second one. Same header, opposite verdicts. Any dashboard that renders a single integer as a health signal is not monitoring — it is optimism with a colour scheme.

Where the freshness lifetime actually comes from

The lifetime has its own hierarchy, and it is not the cache’s to invent. For a shared cache, s-maxage wins. Failing that, max-age can set the lifetime, and after that the gap between Expires and Date. Only when explicit expiration is absent may a cache fall back to a heuristic lifetime — and RFC 9111 declines to prescribe one universal heuristic. Two fully compliant deployments can therefore derive different expiration times from identical response metadata. That is not a flaw in the spec; it is a warning to anyone who assumes the other fellow’s cache expires when yours does.

Age is calculated, not copied

The field estimates the seconds since the origin generated or last successfully validated the response, and it is assembled rather than forwarded. The calculation can fold in a received Age value, response delay, a comparison of response time against Date, and resident time in the current cache. When a stored response is reused without validation, the cache must emit an Age equal to its calculated current age.

Which makes Age genuinely useful evidence — and a genuinely terrible verdict. A value can follow a successful validation, in which case the state transition that matters is the validation outcome, not the original generation time. And the absence of Age on an origin response proves nothing whatsoever about the caches that response will meet later.

Stale is not the same as wrong

RFC 9111 permits a cache to generate a stale response when it is disconnected, or when stale service is explicitly allowed — unless a directive such as no-cache or must-revalidate forbids it. So correct protocol behaviour can hand you stale bytes, and no amount of staring at Age will reveal whether those bytes were still acceptable for a price, an entitlement, a configuration, a revocation state or an operational instruction. Protocol compliance ends where business tolerance begins. Someone has to own that line, and it will not be the header.

The freshness-decision receipt

Here is the practical control — an editorial evidence synthesis, not an element defined by the IETF: a receipt. Record the cache identity and configuration, the request target, the stored-response identifier and a digest of what was actually delivered. Preserve Date, received and emitted Age, request time, response time and resident time. Name the lifetime source — s-maxage, max-age, Expires or a named heuristic — alongside the effective directives, the validation request and its result, any stale authority, and the final decision.

Then, six months later, when a customer disputes what your edge served, you can reconstruct the decision instead of pointing at a small number and hoping nobody asks a second question.

Sources