Enable gzip/deflate in IIS6 without restart

compressioniis-6

I have gone through the steps of enabling static compression for my IIS 6.0 site:

  1. enable it in IIS Manager
  2. enable edit-while-running
  3. add the extensions i need to compress directly to the metabase: js, css
  4. wait for the metabase.xml to update to the latest major history version

It is still not compressing JS and CSS. Is there anyway to enable this without iisreset?

Best Answer

I found the following step by step at http://www.jasonlinham.co.uk/2009/06/turn-on-iis-6-compression-for-css-and.html (including the content here just in case)

Turn on IIS 6 Compression for CSS and Javascript

Enable HTTP Compression

  1. Open IIS Manager Right-click "Web
  2. Site" and select "Services" tab.
  3. Check "Compress Static Files"
  4. Click "Okay"

Specify that "js" and "css" file should be compressed by changing the metabase. By default, IIS 6.0 is set up to compress htm, html, and txt files.

  1. Open a command prompt
  2. cd to C:\Inetpub\AdminScripts (assuming the default location)
  3. run this command (you can change the list of extensions, but only specify static, compressible files here): cscript.exe adsutil.vbs set w3svc/Filters/Compression/GZIP/HcFileExtensions "htm" "html" "txt" "js" "css"

Restart the World Wide Web Publishing Service

Related Topic