QuestenaПрактика, после которой понятно, что повторить
Вопрос 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 URIПравильный ответ
  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

Объяснение

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.

Продолжить работу с тестом

Начать тренировку
Вопрос 5: Under what conditions is a response to POST cacheable? · HTTP Semantics · Questena