Questenaتدريب يوضح لك ما ينبغي مراجعته لاحقًا
السؤال 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-Sinceالإجابة الصحيحة
  3. Evaluate both; respond 304 only if both indicate the stored copy is current
  4. Respond 412 (Precondition Failed), since the preconditions conflict

الشرح

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.

تابع هذا الاختبار

بدء التدريب
السؤال 18: A GET arrives with both If-None-Match and… · HTTP Semantics · Questena