IIS Compression in IIS6.0

来源:互联网 发布:淘宝标题在线优化工具 编辑:程序博客网 时间:2024/05/18 13:05
IIS Compression in IIS6.0

More detail:

http://weblogs.asp.net/owscott/archive/2004/01/12/57916.aspx

 

1. Enable Compression in IIS

 

2. Create a Web Service Extension (WSE)

3. Now for the metabase changes

a. Stop windows service of “IIS Admin Service”

b. change C:/Windows/system32/inetsrv/metabase.xml

c. Start windows service of “IIS Admin Service” and “World Wide Web Publishing Service”

 

Follow is the sample of modify “metabase.xml.”, the extension of html is ScriptFile.

 

<IIsCompressionScheme      Location ="/LM/W3SVC/Filters/Compression/deflate"

              HcCompressionDll="%windir%/system32/inetsrv/gzip.dll"

              HcCreateFlags="0"

              HcDoDynamicCompression="TRUE"

              HcDoOnDemandCompression="TRUE"

              HcDoStaticCompression="FALSE"

              HcDynamicCompressionLevel="9"

              HcFileExtensions="htm               

                     txt"

              HcOnDemandCompLevel="10"

              HcPriority="1"

              HcScriptFileExtensions="asp

                     dll

html

                     aspx

                     asmx

                     ascx

                     exe"

       >

</IIsCompressionScheme>

<IIsCompressionScheme      Location ="/LM/W3SVC/Filters/Compression/gzip"

              HcCompressionDll="%windir%/system32/inetsrv/gzip.dll"

              HcCreateFlags="1"

              HcDoDynamicCompression="TRUE"

              HcDoOnDemandCompression="TRUE"

              HcDoStaticCompression="TRUE"

              HcDynamicCompressionLevel="9"

              HcFileExtensions="htm               

                     txt"

              HcOnDemandCompLevel="10"

              HcPriority="1"

              HcScriptFileExtensions="asp

                     dll

html

                     aspx

                     asmx

                     ascx

                     exe"

       >