V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
kojp
V2EX  ›  问与答

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

  •  
  •   kojp · 2012-03-25 21:12:48 +08:00 · 3198 次点击
    这是一个创建于 4431 天前的主题,其中的信息可能已经有所发展或是发生改变。
    这里说的是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 条回复    1970-01-01 08:00:00 +08:00
    kojp
        1
    kojp  
    OP
       2012-03-25 21:13:52 +08:00
    google 上能找到的,都是老帖子。(诸如加浏览咕嘟判断之类的)而且经测试,无效~~~

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

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

    还是说,他下面的代码能够解决(我试了,解决不了~~)
    gDD
        4
    gDD  
       2012-03-25 21:29:01 +08:00
    @kojp 他说下面的代码能解决。
    kojp
        5
    kojp  
    OP
       2012-03-25 21:44:30 +08:00
    @gDD

    谢谢,我依旧在各种环境,各种测试,,各种尝试。。各种需要解决掉他!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3745 人在线   最高记录 6547   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:36 · PVG 12:36 · LAX 21:36 · JFK 00:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.