Metraipolis › HTTP clauses › rfc9111-s4.1-c1
RFC 9111 §4.1 — Calculating Cache Keys with the Vary Header Field
HTTP Caching · status: INTERNET STANDARD · keyword: MUST NOT · addressee: cache
Official text
When a cache receives a request that can be satisfied by a stored response and that stored response contains a Vary header field (Section 12.5.5 of [HTTP]), the cache MUST NOT use that stored response without revalidation unless all the presented request header fields nominated by that Vary field value match those fields in the original request (i.e., the request that caused the cached response to be stored).
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-4.1-1
- Stable URL of this page
https://metraipolis.com/clausola/rfc9111-s4.1-c1
How to cite
RFC 9111, HTTP Caching, Section 4.1 (Calculating Cache Keys with the Vary Header Field), https://www.rfc-editor.org/rfc/rfc9111.html#section-4.1-1; clause rfc9111-s4.1-c1: https://metraipolis.com/clausola/rfc9111-s4.1-c1
BibTeX
@misc{rfc9111s41,
title = {RFC 9111: HTTP Caching, Section 4.1},
howpublished = {RFC Editor},
url = {https://www.rfc-editor.org/rfc/rfc9111.html#section-4.1-1},
note = {Clause rfc9111-s4.1-c1; https://metraipolis.com/clausola/rfc9111-s4.1-c1}
}Summary (ours, not RFC text)
This restriction concerns calculating cache keys with the vary header field in RFC 9111. Its recorded addressee is cache; use the excerpt and official paragraph to determine the exact obligation.
Conditions
- When a cache receives a request that can be satisfied by a stored response and that stored response contains a Vary header field (Section 12.5.5 of [HTTP])
Exceptions
- unless all the presented request header fields nominated by that Vary field value match those fields in the original request (i.e., the request that caused the cached response to be stored)
Related clauses
- rfc9111-s4.1-c2 (same_section)
- rfc9111-s4.1-c3 (same_section)
- rfc9110-s12.5.5-c1 (reference)
- rfc9110-s12.5.5-c2 (reference)
- rfc9110-s12.5.5-c3 (reference)
- rfc9111-s4-c1 (referenced_by)
- rfc9111-s4.3.5-c1 (referenced_by)