您的位置:首页 > 理论基础 > 计算机网络

HttpCompress相关问题解决方法

2009-05-19 22:32 447 查看

HttpCompress相关问题解决方法

自从用了HttpCompress后,网页打开速度明显快了很多,但在javascript的应用(包括Validation控件)、FreeTextBox 控件的使用中还是出现了error。下面就针对这两种error,给出解决方法。

在web.config中

<httpCompress preferredAlgorithm="gzip" compressionLevel="high">

<excludedMimeTypes>

<add type="image/jpeg"/>

<add type="image/gif"/>

<add type="text/x-component" /> <!-- 解决 FreeTextBox 出错的问题-->

</excludedMimeTypes>

<excludedPaths>

<add path="NoCompress.aspx"/>

<add path="ebResource.axd"/> <!-- 解决 javascript 出错的问题-->

</excludedPaths>

</httpCompress>

希望对大家有帮助
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: