QuestenaPractice that shows what to review next
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 URICorrect answer
  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

Explanation

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.

Continue with this test

Start practice
Question 5: Under what conditions is a response to POST cacheable? · HTTP Semantics · Questena