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.
Example: illustrative sizes for one landing page's HTML, CSS and JavaScript. Real savings depend on your files.
- Visitor clicks adRequest sent to your server
- Server repliesFull-size HTML, CSS, JS
- Page rendersWaits for the larger download
- 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
Use the command line
Run the command below. If you see
content-encoding: gziporbr, compression is on for HTML.Or use browser DevTools
Open DevTools, go to the Network tab, reload, click the main document and look at Response Headers for
content-encoding.Check CSS and JavaScript too
Repeat for your main
.cssand.jsfiles. Compression is sometimes on for HTML only, or off for files served from a separate domain.Run a page speed test
Tools such as Lighthouse or PageSpeed Insights flag text that is not compressed.
curl -s -I -H "Accept-Encoding: gzip, br" https://www.example.com/ | grep -i content-encodingHow 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.
Check your host first
Many hosts have a compression or performance toggle in their control panel. Turn it on there if present.
Or use a caching or performance plugin
Most caching plugins have a gzip option in their settings. It writes rules to
.htaccesson Apache servers. Do not enable it in two places at once.Or add rules to .htaccess
On Apache, add the mod_deflate block shown in the Custom code tab above the WordPress section.
Nothing to change
Shopify serves its storefront through its own CDN, which compresses text files for you. If a file is uncompressed, it is likely an external script from another host.
Nothing to change
Wix controls the servers and compression settings. If a third-party script is uncompressed, ask its provider or remove it.
Nothing to change
Squarespace controls the servers and compression. Check any externally hosted scripts you added through code injection.
Nothing to change on Webflow hosting
Webflow hosting serves text assets compressed. If you host the site elsewhere or proxy it, set compression on that server or CDN.
Apache
Enable
mod_deflate(andmod_brotliif available) and add the rules shown below.Nginx
Add the gzip directives below to the
httporserverblock, then runnginx -tand reload.CDN or reverse proxy
If a CDN sits in front, enable its compression option so it works for visitors even if the origin does not.
<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>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
- Clear any server, plugin and CDN caches.
- Run the curl command again and see
content-encoding: gziporbron 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.
Related issues
- OPS-096HTTP/2 or HTTP/3 not enabledFix guide
- OPS-097Wrong content-type headers (page downloads instead of rendering)Fix guide
- OPS-092Hosting migration left old server serving some trafficFix guide
- OPS-093Cold starts on serverless landing pagesFix guide
- OPS-079Server software outdated (Apache/Nginx/IIS CVEs)Fix guide
- OPS-072Server out of disk space (uploads, sessions fail)Fix guide