QuestenaÜben und erkennen, was als Nächstes dran ist
Frage 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 functionRichtige Antwort
  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

Erklärung

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.

Mit diesem Test weitermachen

Übung starten
Frage 17: A request carries If-None-Match: "abc" and the selected… · HTTP Semantics · Questena