aspx页面中的IIS 6.0 Gzip压缩

时间:2010-10-25 06:23:43

标签: asp.net iis-6

我不擅长IIS管理。我为我的网站启用了gzip压缩,但在IIS Temporary Compressed Files文件夹中,我没有看到任何aspx类型文件。我只看到js,text,css和一些html文件。是的为什么我不认为aspx页面是压缩的。看看我的metabase.xml,我认为我的设置是真的。

IIsCompressionScheme Location =“/ LM / W3SVC / Filters / Compression / deflate”   HcCompressionDll = “%WINDIR%\ SYSTEM32 \ INETSRV \ gzip.dll”   HcCreateFlags = “0”   HcDoDynamicCompression = “TRUE”   HcDoOnDemandCompression = “TRUE”   HcDoStaticCompression = “TRUE”   HcDynamicCompressionLevel = “10”   HcFileExtensions =“HTM    HTML    XML    CSS    文本    RDF    JS”   HcOnDemandCompLevel = “10”   HcPriority = “1”   HcScriptFileExtensions =“ASP    CGI    可执行程序    DLL    ASPX    ASMX”  > / IIsCompressionScheme>

IIsCompressionScheme Location =“/ LM / W3SVC / Filters / Compression / gzip”   HcCompressionDll = “%WINDIR%\ SYSTEM32 \ INETSRV \ gzip.dll”   HcCreateFlags = “1”   HcDoDynamicCompression = “TRUE”   HcDoOnDemandCompression = “TRUE”   HcDoStaticCompression = “TRUE”   HcDynamicCompressionLevel = “10”   HcFileExtensions =“HTM    HTML    XML    CSS    文本    RDF    JS”   HcOnDemandCompLevel = “10”   HcPriority = “1”   HcScriptFileExtensions =“ASP    CGI    可执行程序    DLL    ASPX    ASMX”  > / IIsCompressionScheme>

IIsCompressionSchemes Location =“/ LM / W3SVC / Filters / Compression / Parameters”   HcCacheControlHeader = “最大年龄= 86400”   HcCompressionBufferSize = “8192”   HcCompressionDirectory =“%windir%\ IIS临时压缩文件”   HcDoDiskSpaceLimiting = “FALSE”   HcDoDynamicCompression = “TRUE”   HcDoOnDemandCompression = “TRUE”   HcDoStaticCompression = “TRUE”   HcExpiresHeader =“Wed,1997年1月1日12:00:00 GMT”   HcFilesDeletedPerDiskFree = “256”   HcIoBufferSize = “8192”   HcMaxDiskSpaceUsage = “99614720”   HcMaxQueueLength = “1000”   HcMinFileSizeForComp = “1”   HcNoCompressionForHttp10 = “FALSE”   HcNoCompressionForProxies = “FALSE”   HcNoCompressionForRange = “FALSE”   HcSendCacheHeaders = “FALSE”  > / IIsCompressionSchemes>

2 个答案:

答案 0 :(得分:0)

设置似乎没问题。我过去做了很多事,取得了很大的成功。你是如何检查它是否正常工作?

按照http://alexkuo.info/archive/2009/10/28/55.aspx上的指南了解如何执行此操作,或直接编辑metabase.xml(启用编辑后)。

答案 1 :(得分:0)

检查出MCB ... http://www.codinghorror.com/blog/2004/08/http-compression-and-iis-6-0.html

这是另一篇用于解决HTTP压缩问题的文章。 http://blogs.msdn.com/b/webtopics/archive/2009/02/24/troubleshooting-http-compression-in-iis-6-0.aspx

我希望这会有所帮助。

根据我的评论进行编辑 alt text