QuestenaPractice that shows what to review next
Question 18

A GET arrives with both If-None-Match and If-Modified-Since, and the two conditions disagree. What does RFC 9110 require?

  1. Evaluate If-Modified-Since first, since date validators are cheaper to compare
  2. Evaluate If-None-Match and ignore If-Modified-SinceCorrect answer
  3. Evaluate both; respond 304 only if both indicate the stored copy is current
  4. Respond 412 (Precondition Failed), since the preconditions conflict

Explanation

The precedence order is normative: If-Modified-Since is evaluated only when If-None-Match is absent, because entity tags are presumed more accurate than date validators. A disagreement between the two is therefore not an error condition.

Continue with this test

Start practice
Question 18: A GET arrives with both If-None-Match and… · HTTP Semantics · Questena