IIS 7.5中似乎没有使用动态压缩 [英] Dynamic compression doesn't seem to be used in IIS 7.5
问题描述
我目前同时配置了静态和动态压缩.通过YSlow和Fiddler检查时,静态压缩有效,但是动态压缩无效.
I currently have both static and dynamic compression configured. The static compression is working, however the dynamic compression, when checked through YSlow and Fiddler, is not working.
在我的applicationHost.config中,我具有以下设置:
In my applicationHost.config, I have the following settings:
<urlCompression doStaticCompression="true" doDynamicCompression="true"
dynamicCompressionBeforeCache="true" />
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files"
maxDiskSpaceUsage="100" minFileSizeForComp="256">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"
dynamicCompressionLevel="1" />
<dynamicTypes>
<add mimeType="text/*" enabled="true" />
<add mimeType="message/*" enabled="true" />
<add mimeType="application/x-javascript" enabled="true" />
<add mimeType="*/*" enabled="true" />
</dynamicTypes>
<staticTypes>
<add mimeType="text/*" enabled="true" />
<add mimeType="message/*" enabled="true" />
<add mimeType="application/x-javascript" enabled="true" />
<add mimeType="application/atom+xml" enabled="true" />
<add mimeType="application/xaml+xml" enabled="true" />
<add mimeType="*/*" enabled="true" />
</staticTypes>
</httpCompression>
<serverRuntime frequentHitThreshold="1" frequentHitTimePeriod="01:00:00" />
我的web.config具有:
My web.config has:
<urlCompression doStaticCompression="true"
doDynamicCompression="true" dynamicCompressionBeforeCache="true" />
模块已安装,当我使用失败的请求跟踪"时,得到了几次动态压缩命中,但成功与失败却一无所获.只是这些类型的结果:
The modules are installed, and when I use the Failed Request Trace, I get a couple dynamic compression hits, but nothing about success or failure. Just these types of results:
ModuleName DynamicCompressionModule
Notification 536870912
fIsPostNotification false
Notification SEND_RESPONSE
ModuleName DynamicCompressionModule
Notification 536870912
fIsPostNotificationEvent false
NotificationStatus 0
Notification SEND_RESPONSE
NotificationStatus NOTIFICATION_CONTINUE
ModuleName DynamicCompressionModule
Notification 256
fIsPostNotification true
Notification RELEASE_REQUEST_STATE
ModuleName DynamicCompressionModule
Notification 256
fIsPostNotificationEvent true
NotificationStatus 0
Notification RELEASE_REQUEST_STATE
NotificationStatus NOTIFICATION_CONTINUE
我正在尝试压缩我的aspx文件.任何帮助,将不胜感激.谢谢.
I am trying to get my aspx files to compress. Any help would be appreciated. Thanks.
推荐答案
确定要在IIS中安装动态压缩吗?默认情况下,它未安装在Server 2008(或R2)上.试试这篇文章: http://www.iis.net/ConfigReference/system.webServer/urlCompression
Are you sure you have Dynamic Compression installed in IIS? By default, it is not installed on Server 2008 (or R2). Try this article: http://www.iis.net/ConfigReference/system.webServer/urlCompression
这篇关于IIS 7.5中似乎没有使用动态压缩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!