-
-
Save tomkul/a232a18d1f6ddb0f9bac3cf569d5cfe8 to your computer and use it in GitHub Desktop.
Check if gzip is enabled [ http bash curl ]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -I -H "Accept-Encoding: gzip,deflate" "$URL" --silent | grep -i "Content-Encoding:" | |
# OR | |
curl -H "Accept-Encoding: gzip,deflate" "$URL" --silent --write-out "%{size_download}" --output /dev/null | |
curl "$URL" --silent --write-out "%{size_download}" --output /dev/null | |
# 2nd must be greater the 1st |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment