3

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?

user21511
  • 31
  • 4

3 Answers3

1

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

Brian Boatright
  • 490
  • 2
  • 9
  • 17
0

Follow all the steps in this tutorial:

http://engineering.leads360.com/post/9301650692/http-compression-gzip-on-iis-6

Bill Paetzke
  • 855
  • 4
  • 12
  • 19
0

Check this out

You can check the following in the Metabase.xml file

alt text
(source: msdn.com)

Hope this helps,
Vivek

Glorfindel
  • 1,213
  • 4
  • 15
  • 22
Vivek Kumbhar
  • 3,073
  • 1
  • 18
  • 13