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

Private and shared caches

05

A browser cache serves one user. A shared cache can answer requests from many users and needs stricter safeguards.

RFC 9111 · § 5.2.2.7EXAMPLE
3 / 3
03
Reuse only a response eligible for sharing.

A public resource can be shared when key matching, freshness, authentication rules, and other conditions permit.

Private and shared cachesA private response stays in a single-user cache; the shared-cache branch is blocked. A separate public resource can serve multiple users when eligible.Personal answers need the right cachePrivate example, then separate public examplePublic resourceShared eligible copysingle-user boundarypublicorigin responseeligible sharingUser AUser Bpublic does not bypass freshness or request matchingA separate eligible public response can be shared

Key idea: Do not turn a personalized response into a shared answer.

Terms

Look up a term in the glossary ↗

Rules & examples
  • 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
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 ↗