Visual RFC.
ALL RFCs / RFC 9111
Read the RFC ↗
RFC 9111 / CACHE DECISIONS

Freshness and age

02

A response is fresh when its freshness lifetime exceeds its current age, after accounting for transit and time in caches.

RFC 9111 · § 4.2EXAMPLE
3 / 3
03
Apply the freshness comparison.

Thirty seconds remain in this example; all other reuse restrictions must still be satisfied.

Freshness and ageA 60-second freshness budget is compared with a corrected initial age of 10 seconds and residence of 20 seconds, leaving 30 seconds.Freshness is lifetime minus current ageIllustrative age calculation in secondsmax-age=60 → lifetime 60 s060 s1020current age = 10 + 20 = 30 s30 s remaining30 < 60 → freshAt age 60, the response is no longer freshCompare age with lifetime, then check other policies

Key idea: Compare lifetime to age, not just local storage time.

Terms

Look up a term in the glossary ↗

Rules & examples
  • For a shared cache, s-maxage takes priority over max-age; otherwise max-age precedes Expires minus Date.
  • Age accounts for prior cache residence and network transit, not only time since this cache stored the response.
  • In the example, max-age=60, corrected initial age=10, and residence=20 give current age=30: still fresh.

The example assumes the initial age was already correctly calculated. At current age 60, a lifetime of 60 is no longer fresh. Missing explicit freshness may allow constrained heuristic freshness; it does not imply unlimited reuse.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A request starts a conversation.

A client asks for a resource. A server sends a response. The method, address, headers, and status explain what that conversation means.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

All chapters in RFC 9111

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗