Man*_*ght 8 web-config http-compression iis-7.5 asp.net-4.5
我在我的web.config中有这个代码,用于在IIS 7.5中运行的ASP.NET 4.5网站
<system.webServer>
<urlCompression doStaticCompression="true" doDynamicCompression="true"
dynamicCompressionBeforeCache="true" />
<httpCompression>
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"
staticCompressionLevel="9" dynamicCompressionLevel="4" />
</httpCompression>
</system.webServer>
Run Code Online (Sandbox Code Playgroud)
(为了更好的阅读,我强行换了一条新线)
我想知道是否有空(没有directory ="..."和其他类似的内部元素)会导致问题,或者从IIS applicationHost.config中正确读取此部分的默认属性/元素
我在这里尝试做的只是在web.config中设置压缩和压缩比,而不覆盖或清除其他默认值.我可以从web.config中的方案中删除name ="gzip"dll ="%Windir%\ system32\inetsrv\gzip.dll",只需在scheme标签中保留staticCompressionLevel和dynamicCompressionLevel吗?是否可以从applicationHost.config中读取这些属性
| 归档时间: |
|
| 查看次数: |
3658 次 |
| 最近记录: |