Skip to content

Technical SEO

Gzip and Brotli Compression: How to Check It Is Working

Add saadrazaseo.com as a preferred source on Google

Free and no obligation. A real reply from me, not a bot.

Gzip and Brotli compress text files so they travel faster, and you can confirm they are working by looking for a Content-Encoding header in the server response. A page without compression sends far more data than it needs to, which slows loading, especially on mobile connections.

How compression works

The browser says which formats it supports, and the server replies with a compressed version and a Content-Encoding header naming the method, such as gzip or br for Brotli. The browser then unpacks it.

What to compress

  • HTML pages.
  • CSS and JavaScript files.
  • JSON, XML and plain text, including sitemaps.
  • SVG images.

Rather have an expert do this for you?

Hand it over and get back to running your business.

Hand it over to me

What to leave alone

Formats that are already compressed, such as JPEG, PNG, WebP and video, gain little. Reduce those through image optimisation instead, using the image compressor and WebP converter.

How to check it

Enter a page into the HTTP header checker and look for the Content-Encoding line. Then test the effect on speed with the PageSpeed checker.

If compression is missing

Enable it in your hosting control panel, server configuration, caching plugin or CDN. Most modern hosts offer it. Check again afterwards, because layers such as a CDN can change the result.

Compression sits alongside caching and a CDN, as explained in hosting, caching and CDN for speed and Cache-Control headers.

Frequently asked questions

Is Brotli better than gzip?

It often compresses text a little better, and both are widely supported.

Does compression affect rankings directly?

No. It helps speed, which supports a better visitor experience.

Next steps

For a full speed review, contact me here.

More in this series (HTTP header questions): start with Free HTTP Header Checker, then explore:

Rather have an expert do this for you?

Tell me about your website and goals, and I will reply with a free first review.

Your details are only used to reply to your request. No spam.

Grow my trafficCall