Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Gzip or Brotli compression disabled: how to check and fix it

OPS-095Low impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Compression means your server packs text files into a smaller form before sending them. The visitor's browser unpacks them on arrival. The two common formats are gzip (supported everywhere) and Brotli (newer, usually smaller, works over HTTPS).

The issue is present when your server returns HTML, CSS, JavaScript, JSON or SVG with no Content-Encoding: gzip or Content-Encoding: br header. Images such as JPEG, PNG, WebP and video are already compressed, so they do not count here.

Why it costs you leads or sales

Uncompressed text means more bytes to download before the page can render. On mobile data or weak Wi-Fi that adds visible delay, and slow landing pages lose visitors before the form or buy button appears. The effect is usually modest, which is why this issue is rated low, but it is cheap to fix.

Typical size of the same page's text filesExample numbers
Typical size of the same page's text files (example)No compression: 900 KB; Gzip: 260 KB; Brotli: 220 KB0345690900260220No compressionGzipBrotliKB

Example: illustrative sizes for one landing page's HTML, CSS and JavaScript. Real savings depend on your files.

Where the delay happens
  1. Visitor clicks adRequest sent to your server
  2. Server repliesFull-size HTML, CSS, JS
  3. Page rendersWaits for the larger download
  4. Form or button usableAppears later; some visitors leave

Without compression the download step is slower, which pushes back everything after it.

How to check if your site has it

Check compression in under a minute
  1. Use the command line

    Run the command below. If you see content-encoding: gzip or br, compression is on for HTML.

  2. Or use browser DevTools

    Open DevTools, go to the Network tab, reload, click the main document and look at Response Headers for content-encoding.

  3. Check CSS and JavaScript too

    Repeat for your main .css and .js files. Compression is sometimes on for HTML only, or off for files served from a separate domain.

  4. Run a page speed test

    Tools such as Lighthouse or PageSpeed Insights flag text that is not compressed.

Ask for a compressed responsebash
curl -s -I -H "Accept-Encoding: gzip, br" https://www.example.com/ | grep -i content-encoding

How to fix it

Where you fix it depends on who serves your files. If you use a CDN such as Cloudflare, check its compression setting first. Otherwise change the web server or your host's panel.

Turn on compression by platform
  1. Check your host first

    Many hosts have a compression or performance toggle in their control panel. Turn it on there if present.

  2. Or use a caching or performance plugin

    Most caching plugins have a gzip option in their settings. It writes rules to .htaccess on Apache servers. Do not enable it in two places at once.

  3. Or add rules to .htaccess

    On Apache, add the mod_deflate block shown in the Custom code tab above the WordPress section.

Apache: gzip with mod_deflatehtaccess
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml
  AddOutputFilterByType DEFLATE application/javascript text/javascript application/json
  AddOutputFilterByType DEFLATE image/svg+xml application/xml
</IfModule>
Nginx: gzip for text filesnginx
gzip on;
gzip_comp_level 5;
gzip_min_length 256;
gzip_vary on;
gzip_proxied any;
gzip_types text/plain text/css application/json application/javascript text/javascript application/xml image/svg+xml;

How to confirm it's fixed

After you change the setting
  • Clear any server, plugin and CDN caches.
  • Run the curl command again and see content-encoding: gzip or br on the HTML.
  • Check your main CSS and JavaScript files show the same header.
  • Reload the page and confirm it still renders correctly.
  • Test your lead form or checkout once to be sure nothing else changed.

How to prevent it happening again

Compression often disappears after a host migration, a server upgrade, a plugin change or a new CDN setup. Re-run the check after any of those. Keep a note of where compression is enabled (server, plugin or CDN) so you do not turn it off by accident when cleaning up settings.

How FunnelGuard handles this

FunnelGuard detects this only partly. It runs your real customer journeys on a schedule, and one thing it checks is page weight, so a page that suddenly gets much heavier can stand out. That can be a sign that compression stopped working.

What it does not do: it does not tell you whether gzip or Brotli is enabled, and it does not inspect the Content-Encoding header for each file. A heavier page can also come from big images or new scripts, so the cause is not always compression.

To cover the rest by hand, run the curl check above after server, host or CDN changes, and run a PageSpeed Insights test on your main landing pages. FunnelGuard also checks that your forms, checkouts, tracking hits and test leads still work, which matters more for revenue than compression. The Free plan covers 1 site and 2 journeys with daily checks and no card.

Questions people ask

How do I check if gzip compression is enabled on my website?

Run curl -s -I -H "Accept-Encoding: gzip, br" https://yoursite.com/ and look for a content-encoding header. You can also open browser DevTools, go to the Network tab, click the page request and read the response headers. If neither gzip nor br appears, compression is off.

Why is my site not using gzip or Brotli?

Usually the server module is not enabled, the config has no compression rules, or a migration or plugin change removed them. A CDN or proxy can also strip the header. Check the web server config, then your host panel, then your CDN settings.

How do I enable gzip compression in WordPress?

First look for a compression option in your host's control panel. If there is none, turn on the gzip option in your caching plugin, or add mod_deflate rules to .htaccess on Apache. Use only one method to avoid conflicts.

Is Brotli better than gzip?

Brotli usually produces smaller files than gzip, especially for text, and all modern browsers support it over HTTPS. Many sites serve Brotli and fall back to gzip for older clients. Either one is far better than no compression.

Does compression affect SEO or conversions?

Compression makes pages lighter, which can help load speed, and speed is part of the experience that search engines and visitors notice. The effect on conversions is usually small compared with broken forms or tracking, so fix it but do not skip bigger problems.

Which file types should I compress?

Compress text-based files: HTML, CSS, JavaScript, JSON, XML, plain text and SVG. Do not compress JPEG, PNG, WebP, video or ZIP files, as they are already compressed.

Can FunnelGuard tell me if compression is disabled?

Only partly. FunnelGuard checks page weight, which can reveal a page that has become much heavier, but it does not read the compression header or confirm gzip or Brotli. Use the curl command or PageSpeed Insights to confirm.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: Page weight.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.