snag.page

Every check ยท Loading

Script caching

perf/caching

What it checks

The Cache-Control and Expires headers on the site's own scripts.

Why it matters

Scripts browsers can't keep are fetched again on every visit, so pages load slower for people who come back.

How to fix it

  1. Send a year-long Cache-Control for files with a version or hash in their name.
  2. Give other files a shorter max-age, such as an hour.
Header
Cache-Control: public, max-age=31536000, immutable

Check a site for this and everything else: snag.page. More on loading: Compression Blocking scripts Image dimensions Lazy images Page weight Redirects