【问题标题】:compressing css3-pie压缩css3-pie
【发布时间】:2012-05-06 10:24:07
【问题描述】:

在文档中说可以对 pie.htc 进行 gzip 压缩,但没有关于如何执行此操作的线索。现在我如何压缩 .htc 文件并让浏览器知道它已被压缩?(我记得,对 .js 文件也可以这样做。)

【问题讨论】:

    标签: internet-explorer css3pie


    【解决方案1】:

    最快的方法是压缩服务器必须输出的所有内容。

    阿帕奇:

    <IfModule mod_gzip.c>
    # Enable the module
    mod_gzip_on yes 
    # Allow GZIP compression for all requests 
    mod_gzip_item_include mime .?
    </IfModule>
    
    
    # Method 2: Compress all content, manually excluding specified file types
    <IfModule mod_deflate.c>
      # place filter 'DEFLATE' on all outgoing content
      SetOutputFilter DEFLATE
      # exclude uncompressible content via file type
      SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png|rar|zip)$ no-gzip
      <IfModule mod_headers.c>
        # properly handle requests coming from behind proxies
        Header append Vary User-Agent
      </IfModule>
    </IfModule>
    

    【讨论】:

      猜你喜欢
      • 2011-07-11
      • 2014-01-08
      • 1970-01-01
      • 1970-01-01
      • 2013-11-16
      • 2012-04-02
      • 2011-11-13
      • 2011-11-30
      • 1970-01-01
      相关资源
      最近更新 更多