Server Response Compression Check
Compression reduces server text responses several times: HTML, CSS, and scripts are transmitted noticeably faster without any code changes. You can check if it is enabled by compression check.
What the check shows
- Is compression enabled and which algorithm is used.
- Original and compressed size — the gain is immediately visible.
- Which file types are compressed. Often only HTML is configured, while styles and scripts are forgotten.
- Is anything unnecessary not compressed — compressing images and archives is pointless, they are already compressed.
Why this is more important than it seems
Text files are compressed three to five times. For the visitor, this is a direct reduction in loading time, especially on mobile networks. The setting is done once at the server level and applies to the entire site — in terms of effort and effect, this is one of the best ways to speed up.
| File Type | Compress? |
|---|---|
| HTML, CSS, JavaScript | Yes, definitely |
| JSON, XML, sitemap | Yes |
| SVG | Yes — it’s text |
| JPEG, PNG, WebP | No, already compressed |
| Video, archives, PDF | No |
How much this gives in numbers
A typical HTML page weighing 200 KB after compression takes 30–50 KB, a stylesheet of 150 KB — about 25 KB. For a visitor on a mobile network, this is the difference between instant loading and a couple of seconds of waiting. Moreover, the savings are repeated with every visit of each visitor, unlike one-time optimizations like compressing a single image.
Why compression is sometimes intentionally disabled
There are rare cases: streaming very large responses or saving CPU on a weak server. For a regular site, these considerations do not apply — modern algorithms are cheap in load, and the traffic gain far outweighs the costs.
If compression is not enabled
- Check if a proxy or content delivery network in front of the site is interfering.
- Ensure that the necessary file types are listed in the server configuration.
- Check if the application is returning a ready response bypassing the server.
- Recheck the result and also look at the page load speed.