Known issues with gzip and IE6

别等时光非礼了梦想. 提交于 2019-12-30 02:11:26

问题


I read that some versions of IE6 have known issues with gzip compression, but I have found little explanation as to what these issues are. What are the known issues with gzip compression and IE6?


回答1:


The problem is described in this answer.

If you are using Apache there is information at the Ultimate IE6 > Cheatsheet: How To Fix 25+ Internet Explorer 6 Bugs on how to work around it:

Some versions of IE6 prior to the XP SP2 update may have trouble with files that have been served using GZip compression. Fortunately, Seb Duggan found a IE6 GZip bug solution using ISAPI_Rewrite for Apache.

Seb's solution is to place the following code in the httpd.conf file in the ISAPI_Rewrite installation directory:

RewriteEngine on

RewriteCond %{HTTP:User-Agent} MSIE\ [5<span class="highlight">6</span>]
RewriteCond %{HTTP:User-Agent} !SV1
RewriteCond %{REQUEST_URI} \.(css|js)$
RewriteHeader Accept-Encoding: .* $1


来源:https://stackoverflow.com/questions/1456112/known-issues-with-gzip-and-ie6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!