Freshness and age
02A response is fresh when its freshness lifetime exceeds its current age, after accounting for transit and time in caches.
Thirty seconds remain in this example; all other reuse restrictions must still be satisfied.
Key idea: Compare lifetime to age, not just local storage time.
Rules & examples
Compare lifetime to age, not just local storage time.
- 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
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.