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
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 |
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 |
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 |