Skip to content

Check if Gzip is Enabled

Checking if Gzip Compression is Enabled#

You need to tell the server than you can accept gzipped content. That is done with request headers:

Do not accept Gzip#

$ curl https://fixes.co.za --silent --write-out "%{size_download}\n" --output /dev/null
312114

Accept Gzip#

$ curl https://fixes.co.za --silent -H "Accept-Encoding: gzip,deflate" --write-out "%{size_download}\n" --output /dev/null
53955

Source#