测试网页是否开启了gzip或deflate压缩

  1. [root@Nagios ~]# curl -I -H 'Accept-Encoding: gzip,deflate' baiqiuyi.com 2>/dev/null|perl -ne 'print if /gzip/||/deflate/'
  2. Content-Encoding: gzip

强帖留名: