Private and shared caches
05A browser cache serves one user. A shared cache can answer requests from many users and needs stricter safeguards.
A public resource can be shared when key matching, freshness, authentication rules, and other conditions permit.
Key idea: Do not turn a personalized response into a shared answer.
Rules & examples
Do not turn a personalized response into a shared answer.
- Unqualified private forbids shared storage but can permit storage in a private cache.
- public can explicitly allow shared caching, including cases otherwise restricted by Authorization, but does not bypass all reuse conditions.
- s-maxage sets a shared-cache lifetime, overrides max-age/Expires there, and includes proxy-revalidate behavior.
Authorization responses require the explicit permission described in §3.5. Vary and freshness still matter. A private directive controls storage; it is not encryption of the message.
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.