Cache and compression check: what visitors download again
See how your server sends the page and every style, script, font and image: how long browsers may keep each file, whether text is compressed with gzip or Brotli, whether the server speaks HTTP/2 and HTTP/3, and whether a CDN is in front. Every gap comes with ready nginx and Apache settings.
How the check works
Three steps, a few seconds.
- 01
We load the page
We load the page and list its style sheets, scripts, preloaded fonts and the first images.
- 02
We ask about every file
We ask the server about each file at once, the way a browser does, and ask for HTTP/2 over TLS.
- 03
You get a report
A table of files with compression, cache lifetime and ETag, a 0–100 score and 11 checks with ready settings.
What is checked
Three groups.
Compression
The page and the site's own CSS and JS come compressed, Brotli rather than only gzip, and compressed answers say Vary: Accept-Encoding. 30 points.
Browser cache
Static files are kept for 30 days or more, styles and scripts have a version in the address, the page has a clear Cache-Control, and ETag or Last-Modified allow short 304 answers. 45 points.
Protocol and CDN
The server speaks HTTP/2, offers HTTP/3, and the site sits behind a CDN. 25 points.
FAQ
How is this different from the page weight check?
The page weight check looks at what the page weighs and at its images. This one looks only at how the server sends files: compression type, cache rules of each file, file versions, validators, the HTTP version and the CDN.
Why cache static files for a whole year?
A returning visitor then loads the page almost without downloads. It is safe only when the file address changes with its content: a hash in the name (app.3f9a1c.js, which Vite and webpack add) or ?v=12. Then a new release gets new addresses and nobody sees old files.
Why should the page itself not be cached for long?
If the HTML is kept for a day, visitors see the old page with old links after an update. The usual rule is Cache-Control: no-cache: the browser keeps the copy but asks the server each time, and with an ETag the answer is a short 304.
Do I need a CDN?
For a site whose visitors are in one country and close to the server, no. For visitors in different countries, a CDN keeps copies close to them; Cloudflare has a free plan that also adds Brotli and HTTP/3.
How many checks can I run?
Up to 15 checks per hour from one address. A repeated check within 5 minutes shows the ready report.
Want the site to load instantly on the second visit?
I will set up compression, browser caching, versioned files and HTTP/2 on your server or CDN and check the result.