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

2 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


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.