-
-
Save seralexeev/84193de17d24607497a55f69520b964d to your computer and use it in GitHub Desktop.
Check if gzip is enabled [ http bash curl ]
This file contains 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