Skip to content

QuizNot attempted

No Cache-Control at all

A host serves index.html with a Last-Modified date but no Cache-Control or Expires. After a deploy, some users still get the old page for a while. Why?
1–4 to choose, Enter to submit
Show answer & explanation

Correct answer:

  • Browsers may apply heuristic freshness: reuse it without asking for a fraction of the time since it was last modified
  • When a cacheable response has no explicit freshness, HTTP lets caches estimate one
  • the common heuristic is 10% of the time since Last-Modified.
  • A page last changed 10 days ago may be reused for about a day without asking.
  • Set an explicit Cache-Control: no-cache on HTML to avoid it.
  • Not "never caches": missing headers don't mean uncacheable.
  • Not "24 hours": there is no fixed 24-hour rule.
  • Not stale JS: the old HTML points at the old hashed files, which is the symptom, not the cause.