Questenaتمرینی که نشان می‌دهد بعد چه چیزی را مرور کنید
سؤال 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 functionپاسخ درست
  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

توضیح

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.

ادامهٔ این آزمون

شروع تمرین
سؤال 17: A request carries If-None-Match: "abc" and the selected… · HTTP Semantics · Questena