Skip to content

Instantly share code, notes, and snippets.

@prawin
Last active December 23, 2015 08:29

Revisions

  1. prawin renamed this gist Sep 18, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. prawin revised this gist Sep 18, 2013. No changes.
  3. prawin created this gist Sep 18, 2013.
    13 changes: 13 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    ####################
    # GZIP COMPRESSION #
    ####################
    SetOutputFilter DEFLATE
    Addtype font/opentype .otf
    Addtype font/truetype .ttf
    AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/x-httpd-php font/opentype font/truetype
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
    SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip
    Header append Vary User-Agent env=!dont-vary