Metraipolis › HTTP clauses › rfc9110-s13.2.2-c1

RFC 9110 §13.2.2 — Precedence of Preconditions

HTTP Semantics · status: INTERNET STANDARD · keyword: MUST · addressee: cache / origin server

Official text

A recipient cache or origin server MUST evaluate the request preconditions defined by this specification in the following order: 1. When recipient is the origin server and If-Match is present, evaluate the If-Match precondition: * if true, continue to step 3 * if false, respond 412 (Precondition Failed) unless it can be determined that the state-changing request has already succeeded (see Section 13.1.1) 2. When recipient is the origin server, If-Match is not present, and If-Unmodified-Since is present, evaluate the If-Unmodified-Since precondition: * if true, continue to step 3 * if false, respond 412 (Precondition Failed) unless it can be determined that the state-changing request has already succeeded (see Section 13.1.4) 3. When If-None-Match is present, evaluate the If-None-Match precondition: * if true, continue to step 5 * if false for GET/HEAD, respond 304 (Not Modified) * if false for other methods, respond 412 (Precondition Failed) 4. When the method is GET or HEAD, If-None-Match is not present, and If-Modified-Since is present, evaluate the If-Modified-Since precondition: * if true, continue to step 5 * if false, respond 304 (Not Modified) 5. When the method is GET and both Range and If-Range are present, evaluate the If-Range precondition: * if true and the Range is applicable to the selected representation, respond 206 (Partial Content) * otherwise, ignore the Range header field and respond 200 (OK) 6. Otherwise, * perform the requested method and respond according to its success or failure.

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/rfc9110.html#section-13.2.2-2
Stable URL of this page
https://metraipolis.com/clausola/rfc9110-s13.2.2-c1

How to cite

RFC 9110, HTTP Semantics, Section 13.2.2 (Precedence of Preconditions), https://www.rfc-editor.org/rfc/rfc9110.html#section-13.2.2-2; clause rfc9110-s13.2.2-c1: https://metraipolis.com/clausola/rfc9110-s13.2.2-c1
BibTeX
@misc{rfc9110s1322,
  title = {RFC 9110: HTTP Semantics, Section 13.2.2},
  howpublished = {RFC Editor},
  url = {https://www.rfc-editor.org/rfc/rfc9110.html#section-13.2.2-2},
  note = {Clause rfc9110-s13.2.2-c1; https://metraipolis.com/clausola/rfc9110-s13.2.2-c1}
}

Summary (ours, not RFC text)

This requirement concerns precedence of preconditions in RFC 9110. Its recorded addressee is cache / origin server; use the excerpt and official paragraph to determine the exact obligation.

Conditions

Exceptions

Related clauses