You’re a smart guy, figure it out!

Mike Grushin’s thoughts on everything tech-related and more…

IIS6 Compression: other tidbits

Posted by mikeg on April 22, 2008

A few other useful tidbits about IIS6 and compression:

 

  • You can enable compression per site using the following commands:

disable compression:

cscript C:\Inetpub\AdminScripts\adsutil.vbs set w3svc/{sitenumber}/root/DoStaticCompression False
cscript C:\Inetpub\AdminScripts\adsutil.vbs set w3svc/{sitenumber}/root/DoDynamicCompression False

enable compression:

cscript C:\Inetpub\AdminScripts\adsutil.vbs set w3svc/{sitenumber}/root/DoStaticCompression True
cscript C:\Inetpub\AdminScripts\adsutil.vbs set w3svc/{sitenumber}/root/DoDynamicCompression True

One way to find the {sitenumber} is to search for “header” within metabase. I searched for “staging.reviewbasics.com”. That’s the header binded to the website I am looking for

image

 

  • Disable compression on a specific file (from here):

First, to create a node for the page in the metabase, I right click on the file and go to properties. Make a change of some sort, apply, then change it back.
Then, from the command prompt enter:
“cscript C:\Inetpub\AdminScripts\adsutil.vbs set W3SVC/{siteID}/Root/{subfolder}{page.asp}/DoDynamicCompression False”

 

 

  • Scott mentions that in his experience compression introduces less than 5% overhead

 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>