是否存在允许IIS6进行HTTP压缩的开源ISAPI过滤器?

时间:2013-12-06 15:03:55

标签: http compression iis-6 gzip isapi

我正在寻找一个用于IIS 6的ISAPI过滤器的开源项目来对HTTP请求执行gzip / deflate压缩,例如http://www.port80software.com/products/httpzip/上的“Http gZip”过滤器

1 个答案:

答案 0 :(得分:1)

IIS6本机进行压缩。您需要能够编辑IIS元数据库,以便小心并进行备份,并允许网站停机。

这些是配置数据库中控制压缩的主要部分。根据您的设置,您需要考虑一些标志,即

您想要仅压缩静态的动态和静态内容吗?你想要什么级别的压缩(我去过9而不是10)?您想要压缩哪些文件类型?

<IIsFilter  Location ="/LM/W3SVC/Filters/Compression">
</IIsFilter>
<IIsCompressionScheme   Location ="/LM/W3SVC/Filters/Compression/deflate"
    HcCompressionDll="%windir%\system32\inetsrv\gzip.dll"
    HcCreateFlags="0"
    HcDoDynamicCompression="FALSE"
    HcDoOnDemandCompression="TRUE"
    HcDoStaticCompression="TRUE"
    HcDynamicCompressionLevel="9"
    HcFileExtensions="htm
        html
        xml
        css
        txt
        rdf
        js"
    HcOnDemandCompLevel="9"
    HcPriority="1"
    HcScriptFileExtensions="aspx
        asp
        asmx
        asbx
        ashx
        axd
        php"
>
</IIsCompressionScheme>
<IIsCompressionScheme   Location ="/LM/W3SVC/Filters/Compression/gzip"
    HcCompressionDll="%windir%\system32\inetsrv\gzip.dll"
    HcCreateFlags="1"
    HcDoDynamicCompression="FALSE"
    HcDoOnDemandCompression="TRUE"
    HcDoStaticCompression="TRUE"
    HcDynamicCompressionLevel="9"
    HcFileExtensions="htm
        html
        xml
        css
        txt
        rdf
        js"
    HcOnDemandCompLevel="9"
    HcPriority="1"
    HcScriptFileExtensions="aspx
        asp
        asmx
        asbx
        ashx
        axd
        php"
>
</IIsCompressionScheme>
<IIsCompressionSchemes  Location ="/LM/W3SVC/Filters/Compression/Parameters"
    HcCacheControlHeader="max-age=86400"
    HcCompressionBufferSize="8192"
    HcCompressionDirectory="%windir%\IIS Temporary Compressed Files"
    HcDoDiskSpaceLimiting="FALSE"
    HcDoDynamicCompression="FALSE"
    HcDoOnDemandCompression="TRUE"
    HcDoStaticCompression="TRUE"
    HcExpiresHeader="Wed, 01 Jan 1997 12:00:00 GMT"
    HcFilesDeletedPerDiskFree="256"
    HcIoBufferSize="8192"
    HcMaxDiskSpaceUsage="99614720"
    HcMaxQueueLength="1000"
    HcMinFileSizeForComp="1"
    HcNoCompressionForHttp10="TRUE"
    HcNoCompressionForProxies="TRUE"
    HcNoCompressionForRange="FALSE"
    HcSendCacheHeaders="FALSE"
        >
    </IIsCompressionSchemes>

一些有用的参考;

http://www.microsoft.com/technet/

http://weblogs.asp.net/owscott/

http://omaralzabir.com/