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 |