Audit check compression · worth 6 of 100 points · all checks
The HTML was served without gzip, brotli, or deflate encoding.
Text compresses to roughly a fifth of its size. On a slow mobile connection that is the difference between a page that appears and one that does not, and it costs one line of configuration.
curl -sSI -H 'Accept-Encoding: gzip, br' https://your-site.com/ | grep -iE 'content-encoding|content-length'gzip on;
gzip_types text/html text/css application/javascript application/json image/svg+xml;
gzip_min_length 256;
# brotli, if the module is present
brotli on;
brotli_types text/html text/css application/javascript application/json image/svg+xml;# netlify.toml
[[headers]]
for = "/*"
[headers.values]
Content-Encoding = "br" # only if your build already emits .br filescurl -sSI -H 'Accept-Encoding: gzip' https://your-site.com/ | grep -i content-encoding
# expect: content-encoding: gzip (or br)
Compressing images again saves nothing and wastes CPU. This is for text only. Also check that a CDN in front is not stripping the header.
Open an issue with your URL and a bot runs this check plus 14 others, posts the failures with the measured values, and publishes a report page: free audit. If you want the fixes applied and re-verified instead: fixed-price tiers.
The site does not answer on the URL you gave · The page is served over plain HTTP · The TLS certificate is expired or about to exp · No mobile viewport tag · The page title is missing or the wrong length · The meta description is missing or the wrong l · The page has no H1, or more than one · Images have no alt text