Skip to content

How to enable text compression (Brotli, gzip)

Speed1 min readFixes check text-compression

HTML, CSS and JavaScript shrink by 70–90 % when compressed. It is one server setting and it is usually already available.

Step by step, with screenshots: LiteSpeed Cache settings for Core Web Vitals, tab by tab →

Check your own site

Runs this check and the other 186, free, in about 45 seconds.

What a passing site looks like

  • Text files are compressedwarning · −4 ptseffort S

Text compression

Why it matters. HTML, CSS and JavaScript shrink by 70–90 % with Brotli or gzip. Without it every visitor downloads several times more than needed.

How to fix it.
  1. Turn on Brotli or gzip on the server or CDN (Cloudflare does it automatically; Apache mod_deflate/brotli; nginx gzip on).
  2. Check that your CDN or plugin is not serving already-compressed assets without the Content-Encoding header.

Filed under Speed & Core Web Vitals. Copy is generated from the same catalogue that scores every report, so what you read here is what the report says.