设置在asp.net gzip的COM pression [英] Setting the gzip compression in asp.net
本文介绍了设置在asp.net gzip的COM pression的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种方法来设置gzip的COM pression在web.config中级别或我只能这样做在IIS管理控制台?
Is there a way to set the gzip compression at the web.config level or can I only do this in the IIS management console?
推荐答案
下面试试这个:约400%%的加速我的网站了。曾在第一次尝试。
Here try this: Sped my site up by about 400% percent. Worked on first try.
<一个href=\"http://am-blog.no-ip.org/BlogEngine/post/2010/11/23/Enable-Gzip-com$p$pssion-in-ASPNET-using-webconfig-configuration.aspx\">Activate用的GZip web.config中
<system.webServer>
<httpCompression directory="%SystemDrive%\inetpub\
temp\IIS Temporary Compressed Files">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"/>
<dynamicTypes>
<add mimeType="text/*" enabled="true"/>
<add mimeType="message/*" enabled="true"/>
<add mimeType="application/javascript" enabled="true"/>
<add mimeType="*/*" enabled="false"/>
</dynamicTypes>
<staticTypes>
<add mimeType="text/*" enabled="true"/>
<add mimeType="message/*" enabled="true"/>
<add mimeType="application/javascript" enabled="true"/>
<add mimeType="*/*" enabled="false"/>
</staticTypes>
</httpCompression>
<urlCompression doStaticCompression="true" doDynamicCompression="true"/>
</system.webServer>
这篇关于设置在asp.net gzip的COM pression的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文