Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

3 Answers 3

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

share|improve this answer

Check this out http://blogs.msdn.com/vivekkum

You can check the following in the Metabase.xml file

alt text

Hope this helps,
Vivek

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.