QuestenaPractice that shows what to review next
Question 17

A request carries If-None-Match: "abc" and the selected representation's current entity tag is W/"abc". Do they match?

  1. Yes, because If-None-Match is evaluated with the weak comparison functionCorrect answer
  2. No, because one tag is weak and the other is strong
  3. Yes, but only for GET and HEAD; for other methods the comparison is strong
  4. No, because a client must not send a strong tag against a weakly validated resource

Explanation

Weak comparison matches on the opaque value regardless of either side carrying the W/ marker, so the condition is false and the server answers 304 for GET or HEAD. If-Match is the field that requires strong comparison, because it is meant to block a write when the data has changed at all.

Continue with this test

Start practice
Question 17: A request carries If-None-Match: "abc" and the selected… · HTTP Semantics · Questena