QuestenaUn entraînement qui indique quoi revoir ensuite
Question 5

Under what conditions is a response to POST cacheable?

  1. Only when it includes explicit freshness information and a Content-Location field equal to the POST's target URIBonne réponse
  2. Never; POST responses are excluded from caching entirely
  3. Whenever the response carries an ETag, since that permits later validation
  4. Whenever the response carries Cache-Control: public, regardless of other fields

Explication

Both conditions are required together, and the resulting cached entry can then satisfy a later GET or HEAD. A subsequent POST can never be served from that entry, because POST is potentially unsafe.

Continuer avec ce test

Commencer l’entraînement
Question 5: Under what conditions is a response to POST cacheable? · HTTP Semantics · Questena