Skip to content

Instantly share code, notes, and snippets.

@bunlongheng
Last active March 1, 2019 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bunlongheng/e36efe55cc500081d521 to your computer and use it in GitHub Desktop.
Save bunlongheng/e36efe55cc500081d521 to your computer and use it in GitHub Desktop.
#!/bin/bash
function check_compression {
curl -I -H 'Accept-Encoding: gzip,deflate' $1 |grep "Content-Encoding"
}
check_compression http://www.bunlongheng.com/ ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment