Geeks With Blogs
Dennis Bottjer | MVP

How to Enable IIS 6.0 Compression for SharePoint:

Microsoft’s Internet Information Server (IIS) has long support HTTP Compression.  However, supporting and implementing compression are two different things.  Many settings within IIS are easily configured from the IIS Admin GUI.  Unfortunately, enabling and configuring compression is not supported through the GUI and requires editing the IIS Metabase.  THe metabase can be edited manually or updated from a command prompt.  The commands can be combine into the following script:


cd c:\inetpub\adminscripts

REM Turn On Compression
cscript adsutil.vbs set w3svc/filters/compression/parameters/HcDoDynamicCompression true
cscript adsutil.vbs set w3svc/filters/compression/parameters/HcDoStaticCompression true

REM Set Compression to High Level
cscript.exe adsutil.vbs set w3svc/filters/compression/gzip/hcdynamiccompressionlevel "9"
cscript.exe adsutil.vbs set w3svc/filters/compression/deflate/hcdynamiccompressionlevel "9"

REM IIS 6.0 Only

REM cscript.exe adsutil.vbs set w3svc/filters/compression/gzip/hcscriptfileextensions "css" "js" "asp" "exe" "axd" "aspx"
REM cscript.exe adsutil.vbs set w3svc/filters/compression/deflate/hcscriptfileextensions "css" "js" "asp" "exe" "axd" "aspx"



File Extensions:

Consider Adding: “ascx”, “ashx”, “asmx” “xml”


Test the various file extensions and compression levels.  Perhaps start with a compression level of 7 to 8 or 9 after monitoring CPU utilization.  The results of compression can be monitored using Fiddler.

Related Download Available:

Administration: From Knee Jerk Reactions to Proactive Solutions | A Dozen Tips for Improved SharePoint Performance (Presentation Slides)

Technorati Tags:
Posted on Tuesday, April 14, 2009 6:19 AM SharePoint , IIS | Back to top

Comments on this post: Enable IIS 6 Compression for SharePoint

# re: Enable IIS 6 Compression for SharePoint
Requesting Gravatar...
IIS compression is easy and makes a huge impact. I won't remember how to do it, but I will lookup on any web app I work on.
Left by chrisbarba on Apr 15, 2009 3:34 AM

Your comment:
 (will show your gravatar)

Copyright © DennisBottjer | Powered by: