Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

caching

Rules: 1

caching/cache-control

Long-cached files have URLs that never change

caching/cache-control/excessive · warning · score 5.0 · site

A file cached for weeks or marked immutable at a URL with no hash or version stays stale in browsers and CDNs after the next publish, so visitors keep seeing the old copy. By default the limit is 30 days.

Fix

Put a content hash or version in the file name, as cv.3f9a1c.pdf, or send Cache-Control: no-cache.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.headers.cache-control
  • resources