Skip to the content
Start free

The HTML is not compressed

The server sends the page without gzip or Brotli, so it is several times bigger on the way than it needs to be.

Low priority Speed and caching

Why it matters #

Text such as HTML, CSS and JavaScript usually shrinks to a fraction of its size with gzip or Brotli compression. Browsers and the main crawlers ask for it on every request. Without it, pages take longer to arrive, most of all on phones.

Compression costs almost nothing and is usually a single setting on the server or CDN, so it is one of the easiest speed fixes there is.

How to fix it #

Switch on gzip or Brotli for text files in your hosting panel, server settings or CDN. On Apache this is mod_deflate or mod_brotli; on nginx it is gzip on. Many caching plugins can also do it.

There is no need to compress images, video or fonts that are already compressed. Check the Content-Encoding header with the HTTP Header Checker.

What it looks like, and fixed #

The problem
GET / HTTP/1.1
Host: www.example.com
Accept-Encoding: gzip, br

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Content-Length: 412000

The browser asks for gzip or Brotli, but the page arrives at full size with no Content-Encoding.

Fixed
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Content-Encoding: br
Vary: Accept-Encoding

Brotli compression, with Vary so caches keep compressed and plain copies apart.

Fix it with your AI assistant #

Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.

Your instruction for the AI
The HTML of my website [your website address], built with [your platform, e.g. WordPress on nginx], is sent without gzip or Brotli compression. First fetch [the page address] with the header Accept-Encoding: gzip, br, or ask me to paste the response headers, and explain plainly whether Content-Encoding is missing, and whether a CDN, the web server or PHP is sending the page. Also check CSS and JavaScript files. Then give me the smallest change that turns on compression for text types only: HTML, CSS, JavaScript, JSON, SVG and XML, with Vary: Accept-Encoding. Show the exact lines for my server (Apache mod_deflate or mod_brotli, nginx gzip on with gzip_types) or the plugin, hosting or CDN setting. Rules: back up config files first, do not compress images, video or fonts that are already compressed, do not compress twice, test the server config before reloading, and keep page addresses the same. Say exactly where the lines go. Then tell me to re-check with the URSY.com HTTP Header Checker at ursy.com/http-header-checker/.

We find the problems, and help you fix them

  1. Check Run a free tool or the full audit.
  2. Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
  3. Re-check Come back, check again, and watch each fix turn green.

How the AI Fix Pack works, with a sample to download

Fix it on your platform #

WordPress

Many caching plugins have a gzip option. If yours does not, ask your host or turn it on in the server or CDN settings.

Your server or hosting

On Apache, enable mod_deflate (or mod_brotli) with AddOutputFilterByType DEFLATE text/html text/css application/javascript. On nginx, set gzip on; and list the text types in gzip_types.

Your CDN (for example Cloudflare)

Cloudflare and most CDNs compress text files for visitors. Check the CDN is not set to pass the origin answer through unchanged.

Check it is fixed #

Run the URSY.com HTTP Header Checker again: the page should answer with Content-Encoding: gzip or br.

Official source #

MDN: Compression in HTTP

Questions #

gzip or Brotli: which is better?

Brotli usually makes text files a little smaller. Either is far better than none, and many servers offer both.

Does compression slow the server down?

It uses a little processing, but the saving in transfer time is usually far bigger. Caches can keep compressed copies ready.

More problems in Speed and caching

See every problem in the library

For AI assistants and developers: Instructions for AI · Developers · How to cite URSY.com