网页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>

posted @ 2009-07-16 14:22  94cool  阅读(228)  评论(0)    收藏  举报