Skip to content

QuizNot attempted

What no-cache really means

index.html is served with Cache-Control: no-cache. What does the browser do?
1–4 to choose, Enter to submit
Show answer & explanation

Correct answer:

  • Stores it, but checks with the server (a conditional request) before every use
  • no-cache means "you may keep it, but revalidate before using it".
  • With an ETag that check is usually a small 304 Not Modified.
  • Not "never stores it": that is no-store.
  • Not "until the browser closes": that describes neither directive
  • no-cache requires a check every time.
  • Not "24 hours": there is no such default
  • freshness comes from max-age (or a heuristic when no freshness information is sent at all).