• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Testing IIS http compression

VectraMan

Lord of the Vectras
Joined
Dec 28, 2005
Messages
11,460
Likes received
1,218
Thanks received
233
Location
European Union (Yorkshire)
This is a creaky old IIS6 2003 server. The HTTP compression is turned on, but it had the defaults: htm,html and txt as static file types to compress and I wanted to add .js and .css, so I found this:

Microsoft Corporation

My real question is how do I know it's working? I'm looking at the cache directory, and although it contains some htm files there are no css or js, so I can only assume it isn't.

And from the other end, I'm looking at the network section in both IE's and Chrome's diagnostic tools, but I can't work out if anything indicates that it's downloaded a compressed version. For one HTM file it's telling me it's downloaded 43K, which is the original size and not the 5K version that's in the cache folder on the server - has that worked? Or is it reporting only the unpacked version?

:confused:

Thanks for any help.
 
Code:
$ wget --header="accept-encoding: gzip" "http://www.mysite.com/fooey.js

Disclaimer: not tried it myself.
 
Why is it I always figure these things out just after I ask for help? :suicide:

Chrome shows size and content as separate numbers, size being the download, content being the unpacked size. And for the aforementioned htm file it does show the size as 5K.

And for reasons I don't understand, restarting the service didn't seem to make it work, but now I've restarted the site it does.

Thanks for listening. Please go about your business.
 

Advertisers

Back
Top