Metraipolis › HTTP clauses › rfc9111-s3-c1

RFC 9111 §3 — Storing Responses in Caches

HTTP Caching · status: INTERNET STANDARD · keyword: MUST NOT · addressee: cache

Official text

A cache MUST NOT store a response to a request unless: * the request method is understood by the cache; * the response status code is final (see Section 15 of [HTTP]); * if the response status code is 206 or 304, or the must-understand cache directive (see Section 5.2.2.3) is present: the cache understands the response status code; * the no-store cache directive is not present in the response (see Section 5.2.2.5); * if the cache is shared: the private response directive is either not present or allows a shared cache to store a modified response; see Section 5.2.2.7); * if the cache is shared: the Authorization header field is not present in the request (see Section 11.6.2 of [HTTP]) or a response directive is present that explicitly allows shared caching (see Section 3.5); and * the response contains at least one of the following: - a public response directive (see Section 5.2.2.9); - a private response directive, if the cache is not shared (see Section 5.2.2.7); - an Expires header field (see Section 5.3); - a max-age response directive (see Section 5.2.2.1); - if the cache is shared: an s-maxage response directive (see Section 5.2.2.10); - a cache extension that allows it to be cached (see Section 5.2.3); or - a status code that is defined as heuristically cacheable (see Section 4.2.2). Note that a cache extension can override any of the requirements listed; see Section 5.2.3. In this context, a cache has "understood" a request method or a response status code if it recognizes it and implements all specified caching-related behavior. Note that, in normal operation, some caches will not store a response that has neither a cache validator nor an explicit expiration time, as such responses are not usually useful to store. However, caches are not prohibited from storing such responses.

Verbatim from the official RFC text, whitespace preserved. Copyright (c) IETF Trust and the persons identified as the document authors; IETF Trust Legal Provisions.

Official source
https://www.rfc-editor.org/rfc/rfc9111.html#section-3-1
Stable URL of this page
https://metraipolis.com/clausola/rfc9111-s3-c1

How to cite

RFC 9111, HTTP Caching, Section 3 (Storing Responses in Caches), https://www.rfc-editor.org/rfc/rfc9111.html#section-3-1; clause rfc9111-s3-c1: https://metraipolis.com/clausola/rfc9111-s3-c1
BibTeX
@misc{rfc9111s3,
  title = {RFC 9111: HTTP Caching, Section 3},
  howpublished = {RFC Editor},
  url = {https://www.rfc-editor.org/rfc/rfc9111.html#section-3-1},
  note = {Clause rfc9111-s3-c1; https://metraipolis.com/clausola/rfc9111-s3-c1}
}

Summary (ours, not RFC text)

This restriction concerns storing responses in caches in RFC 9111. Its recorded addressee is cache; use the excerpt and official paragraph to determine the exact obligation.

Conditions

Exceptions

Related clauses