httpCompression在web.config中不起作用 [英] httpCompression not work inside web.config
本文介绍了httpCompression在web.config中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
他们是否仍要从web.config内部使httpCompression工作?
Is their anyway to make httpCompression work from inside web.config ?
我尝试将其添加到我的web.config中,但它什么也没做:
i try to add this in my web.config but it's does nothing :
<httpCompression>
<dynamicTypes>
<clear />
<add mimeType="text/*" enabled="true" />
<add mimeType="application/json" enabled="true" />
<add mimeType="application/javascript" enabled="true" />
<add mimeType="*/*" enabled="false" />
</dynamicTypes>
<staticTypes>
<clear />
<add mimeType="text/*" enabled="true" />
<add mimeType="application/javascript" enabled="true" />
<add mimeType="*/*" enabled="false" />
</staticTypes>
</httpCompression>
推荐答案
在IIS 10中,覆盖web.config
中与压缩相关的设置被认为是新增功能,
Overriding compression related settings in web.config
is considered a new addition in IIS 10,
So to answer your question, you have to upgrade to IIS 10.
这篇关于httpCompression在web.config中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文