kojp
V2EX  ›  问与答

我是想问,IE为什么这么难搞?不光前端难搞,连GZIP压缩也是如此~~~

  •  
  •   kojp · Mar 25, 2012 · 3742 views
    This topic created in 5194 days ago, the information mentioned may be changed or developed.
    这里说的是APACHE
    打开
    LoadModule deflate_module modules/mod_deflate.so 选项
    然后~~

    <IfModule mod_deflate.c>
    SetOutputFilter DEFLATE
    DeflateCompressionLevel 9
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/htm
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/javascript
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/atom_xml
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/x-httpd-php
    AddOutputFilterByType DEFLATE image/svg+xml
    </IfModule>

    -----------------本来就是很EASY,网页被压缩成了原大小的20%左右.

    但是IE不听话? 怎么办?(FF OKAY~~)
    5 replies    1970-01-01 08:00:00 +08:00
    kojp
        1
    kojp  
    OP
       Mar 25, 2012
    google 上能找到的,都是老帖子。(诸如加浏览咕嘟判断之类的)而且经测试,无效~~~

    这里有没有人玩过GZIP压缩功能的? 先谢过了~~
    satgi
        2
    satgi  
       Mar 25, 2012
    fuck ie6,浪费了多少能用来干其他事情的时间
    kojp
        3
    kojp  
    OP
       Mar 25, 2012
    http://suwala.eu/blog/2010/11/30/apache-mod_deflate-and-ie-issues/

    这个文章的意思是不是,让我GZIP彻底放弃IE6?(E文的东西总是看的很吃力。。)

    还是说,他下面的代码能够解决(我试了,解决不了~~)
    gDD
        4
    gDD  
       Mar 25, 2012
    @kojp 他说下面的代码能解决。
    kojp
        5
    kojp  
    OP
       Mar 25, 2012
    @gDD

    谢谢,我依旧在各种环境,各种测试,,各种尝试。。各种需要解决掉他!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   841 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 20:35 · PVG 04:35 · LAX 13:35 · JFK 16:35
    ♥ Do have faith in what you're doing.