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