GUIDE 8 OF 11 · WEBSITE HEALTH CHECK
Slow server response, compression and redirect chains
Four checks look at the speed of the first request: how long the server takes to start answering (800 ms or less passes), whether the page is sent compressed, how large the HTML is (300 KB or less passes) and how many redirects come before it (none or one passes). They measure the page itself, not the pictures and scripts after it, so they are a guide and not a full speed test.
AT A GLANCE
- Server response time: 800 ms or less passes, up to 1,800 ms is a warning, slower fails.
- Compression: gzip, Brotli, zstd or deflate passes. An uncompressed page of 1,400 bytes or more fails.
- HTML size: up to 300,000 bytes passes, up to 1,000,000 is a warning, more fails.
- Redirects: none or one passes, two is a warning, three or more fails (the scan gives up after five).
| Check | Group | Points |
|---|---|---|
Server response time perf-ttfb | Speed | 5 |
Text compression perf-compression | Speed | 4 |
HTML size perf-html-size | Speed | 2 |
Redirect chain perf-redirects | Speed | 2 |
What each check measures
| Check | Pass | Warning | Fail |
|---|---|---|---|
Server response time (perf-ttfb) | 800 ms or less | 801 to 1,800 ms | Over 1,800 ms |
Text compression (perf-compression) | Compressed, or under 1,400 bytes | Never a warning | Uncompressed and 1,400 bytes or more |
HTML size (perf-html-size) | 300,000 bytes or less after unpacking | Up to 1,000,000 bytes | More than 1,000,000, or too large for the scan to read |
Redirect chain (perf-redirects) | 0 or 1 redirect | 2 redirects | 3 or more |
The response time is the time until the first byte arrives, counting the DNS lookup and connecting to the server. It is measured from the computer that runs the scan, so another place in the world will see a different number. Treat it as a rough guide, and run the scan twice before you decide.
Slow server response
A slow first byte means the server is busy doing something before it sends anything: building the page for every visitor, waiting for a database, or starting up after being idle. The cure is to do that work less often.
- Serve the page from a cache or a CDN. A page that is built once and then sent as a file answers in milliseconds.
- Look for the slow step. A database query, a call to another service or a cold start of a server function are the usual ones.
- Move the server closer to your visitors. The distance alone adds time.
This site is built as static pages that are served from a CDN. Its response headers show X-Vercel-Cache: HIT and X-Nextjs-Prerender: 1 on the home page, which is the main reason server response time is rarely a problem for it.
Compression
Compression makes text, such as HTML, CSS and JavaScript, much smaller on the way to the browser. The check passes any of gzip, Brotli, zstd and deflate, and passes a very small page where compression would not help. Most hosts turn it on for you. If your own server does not, switch it on:
gzip on;
gzip_types text/css application/javascript application/json image/svg+xml;Next.js compresses pages with gzip by default when it serves them itself (next start or a custom server). The compress: false option turns that off, which only makes sense when something in front of it, such as nginx, does the compression. If you switch it off and nothing replaces it, this check fails.
HTML size
This is the size of the HTML document itself after it has been unpacked, not the pictures or scripts. Up to 300 KB passes, up to 1 MB is worth trimming, and more is a problem: phones are slow to parse a document that large, and the scan stops reading at about 1.4 MB. The usual causes are data pasted into the page (a long list rendered in full, or a big JSON block), inline images and repeated markup.
For comparison, this site's home page HTML is about 43 KB.
Redirect chains
Each redirect costs a full round trip before the page can start. One is normal: http to https, or www to the plain address. The trouble is a chain, where the first redirect points at an address that redirects again. Typing http://www.example.com can take two hops (to https, then to the address without www) when each rule only knows about its own step.
Make the first redirect go straight to the final address, and make the links and the sitemap point at the final address too. This site's old address, for example, redirects to the new domain in a single step, with the path and query kept.
What these checks cannot see
They do not measure how fast the page looks or feels: not the largest picture, not the scripts, not how long it takes to be usable. For that, use Lighthouse or a field measurement. These four checks only look at the first request, which is where a slow site often starts.
Questions people ask
What is a good server response time?
For this check, 800 ms or less passes, up to 1,800 ms is a warning and anything slower fails. A page served as a static file from a CDN usually answers well under that.
Does the scan measure my site's real speed?
Only the first request, from where the scan runs. It is a good early warning, but it is not a full speed test: it does not load pictures or scripts, and it does not see how the page behaves on a phone.
Is Brotli better than gzip?
Brotli usually makes text a little smaller, but this check passes both, and zstd and deflate too. What matters is that something is on.
Where the facts come from
See also on this site
FREE · ABOUT TEN SECONDS · NOTHING STORED
Check your own site
Paste a web address into the free website health check. It runs the 36 checks these guides explain, gives a score out of 100, and says what to fix first.
Open the free website health check