now musing at www.aliaspooryorik.com!

February 15, 2008

IIS 6 GZIP compression

Filed under: ColdFusion — aliaspooryorik @ 10:56 am

For static files (such as html)

open a dos prompt and type:

cd %systemdrive%\Inetpub\AdminScripts
cscript.exe adsutil.vbs set W3Svc/Filters/Compression/GZIP/HcFileExtensions "htm" "html" "js" "css" "xml" "xlt"
cscript.exe adsutil.vbs set W3Svc/Filters/Compression/DEFLATE/HcFileExtensions "htm" "html" "js" "css" "xml" "xlt"
IISreset.exe /restart

For dynamic scripts (such as cfm) open a dos prompt and type:

cscript.exe adsutil.vbs set W3Svc/Filters/Compression/GZIP/HcScriptFileExtensions "cfm" "cfc"
cscript.exe adsutil.vbs set W3Svc/Filters/Compression/DEFLATE/HcScriptFileExtensions "cfm" "cfc"
IISreset.exe /restart

3 Comments »

  1. How do you know if gzip has been enabled? I typed that in and restarted IIS but my js/css file sizes seem to still be the same size in firebug.

    Comment by Feras Hirzalla — September 30, 2008 @ 2:07 am | Reply

  2. Got it, just found this tool to check if your pages are gzipped: http://whatsmyip.org/mod_gzip_test/

    Thanks!

    Comment by Feras Hirzalla — September 30, 2008 @ 3:33 am | Reply

  3. Hi pooryorik, does this code work properly with iis 6 coldfusion website. Because i dont want my server to go down, as many a website are hosted in same server. Will this work for my website http://www.drivingoz.com programming language used are coldfusion and Shadow-cms.
    Any comments will be appreciated.

    Comment by Rajesh Mergu — July 22, 2010 @ 2:37 am | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.