apache下IE6对js的bug处理

<VirtualHost 192.168.1.20:80>
DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
CustomLog logs/deflate/www.你的网站域名.cn_deflate_log deflate
<Location />
SetOutputFilter DEFLATE
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \.(?:gif|jpg|cab|jpe?g|exe|bmp|mp3|rar|zip|swf|png)$ no-gzip dont-vary
Header append Vary User-Agent env=!dont-vary
</VirtualHost>


取消apache的gzip对js的压缩。

本文出自 “Android/Linux@HeFei” 博客,谢绝转载!

你可能感兴趣的:(apache,职场,休闲)