Check whether a website serves gzip or Brotli
check if gzip is enabled | test brotli compression curl | is my site served compressed | pagespeed enable text compression | curl | gzip | brotli | performancecurl -s -o /dev/null -D - -H "Accept-Encoding: br, gzip" https://example.com/ | grep -i "^content-encoding"Sends a normal GET request announcing that Brotli and gzip are accepted, discards the content and shows only the Content-Encoding header. If it says br or gzip, compression is active. Empty output means the response is served uncompressed.
Note: Also test a CSS or JS file instead of just the homepage, since compression is often configured only for certain MIME types.
Also searched as
- check if gzip is enabled
- test brotli compression curl
- is my site served compressed
- pagespeed enable text compression