• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • 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

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Testing IIS http compression

    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?



    Thanks for any help.
    Will work inside IR35. Or for food.

    #2
    Code:
    $ wget --header="accept-encoding: gzip" "http://www.mysite.com/fooey.js
    Disclaimer: not tried it myself.

    Comment


      #3
      Why is it I always figure these things out just after I ask for help?

      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.
      Will work inside IR35. Or for food.

      Comment

      Working...
      X