动态压缩不工作IIS 7.5 [英] Dynamic Compression not working IIS 7.5

查看:171
本文介绍了动态压缩不工作IIS 7.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前同时配置了静态和动态压缩。静态压缩正在运行,但通过YSlow和Fiddler进行检查时,动态压缩将无法正常工作。



在我的applicationHost.config中,我有以下设置: / p>

 < urlCompression doStaticCompression =truedoDynamicCompression =truedynamicCompressionBeforeCache =true/> 
< httpCompression directory =%SystemDrive%\inetpub\temp\IIS临时压缩文件maxDiskSpaceUsage =100minFileSizeForComp =256>
< scheme name =gzipdll =%Windir%\system32\inetsrv\gzip.dlldynamicCompressionLevel =1/>
< dynamicTypes>
< add mimeType =text / *enabled =true/>
< add mimeType =message / *enabled =true/>
< add mimeType =application / x-javascriptenabled =true/>
< add mimeType =* / *enabled =true/>
< / dynamicTypes>
< staticTypes>
< add mimeType =text / *enabled =true/>
< add mimeType =message / *enabled =true/>
< add mimeType =application / x-javascriptenabled =true/>
< add mimeType =application / atom + xmlenabled =true/>
< add mimeType =application / xaml + xmlenabled =true/>
< add mimeType =* / *enabled =true/>
< / staticTypes>
< / httpCompression>
< serverRuntime frequentHitThreshold =1frequentHitTimePeriod =01:00:00/>

我的web.config有:

 < urlCompression doStaticCompression =truedoDynamicCompression =truedynamicCompressionBeforeCache =true/> 

模块已安装,当我使用失败请求跟踪时,我获得了几个动态压缩命中,但没有任何成功或失败。只是这些类型的结果:

  ModuleName DynamicCompressionModule 
通知536870912
fIsPostNotification false
通知SEND_RESPONSE

ModuleName DynamicCompressionModule
通知536870912
fIsPostNotificationEvent false
NotificationStatus 0
通知SEND_RESPONSE
NotificationStatus NOTIFICATION_CONTINUE

ModuleName DynamicCompressionModule
通知256
fIsPostNotification true
通知RELEASE_REQUEST_STATE

ModuleName DynamicCompressionModule
通知256
fIsPostNotificationEvent true
NotificationStatus 0
通知RELEASE_REQUEST_STATE
NotificationStatus NOTIFICATION_CONTINUE

我试图让我的aspx文件压缩。任何帮助将不胜感激。谢谢。

解决方案

检查这个线程,听起来你有类似的问题:



如何在IIS7中获取gzip压缩工作?


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.

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" />

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 

I am trying to get my aspx files to compress. Any help would be appreciated. Thanks.

解决方案

Check this thread, it sounds like you are having a similar issue:

How can I get gzip compression in IIS7 working?

这篇关于动态压缩不工作IIS 7.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆