Tuesday, May 27, 2008

Making sure that GZIP encoding is turned on, using wget

Something I've had to do many times, but I always seem to forget the syntax:

wget --header="accept-encoding: gzip" "http://"

If the saved response you get back is in binary gzip format instead of text/html, then you know that your gzip encoding is turned on and functioning correctly.

0 comments: