What compression does
Servers can shrink text files such as HTML, CSS and JavaScript before sending them, and the browser expands them on arrival. Fewer bytes travel, so the page starts loading sooner, which matters most on slow connections.
Brotli, Gzip and Zstandard
Gzip is the oldest and works everywhere. Brotli usually produces smaller files than Gzip for text and is supported by every current browser. Zstandard is newer and is supported by recent browsers. A server picks one based on what the browser says it accepts.
How to turn it on
Most CDNs and hosts compress text automatically or have a single setting for it. On your own server, enable the Brotli or Gzip module in Nginx, Apache or Caddy. Images, video and fonts in WOFF2 format are already compressed and should be left alone.
Common questions
- Which compression methods does this test ask for?
- It tells the server it accepts Brotli, Gzip and Zstandard, like a current browser does, and reports the one the server chose.
- Why does the page show no compression?
- Either compression is switched off, or the server skips it for this type or size of file. Very small responses are often left uncompressed on purpose.