Commit c7e06a331dc8f19916625e16f23938149aa38b4d

Authored by Timur Kastemirov
1 parent b60c7d5a

gzip

Showing 1 changed file with 12 additions and 1 deletions   Show diff stats
.htaccess
... ... @@ -41,4 +41,15 @@ AddDefaultCharset utf-8
41 41  
42 42 RewriteCond %{REQUEST_URI} \.(htaccess|htpasswd|svn|git)
43 43 RewriteRule \.(htaccess|htpasswd|svn|git) - [F]
44   -</IfModule>
45 44 \ No newline at end of file
  45 +</IfModule>
  46 +
  47 +<ifModule mod_gzip.c>
  48 + mod_gzip_on Yes
  49 + mod_gzip_dechunk Yes
  50 + mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
  51 + mod_gzip_item_include handler ^cgi-script$
  52 + mod_gzip_item_include mime ^text/.*
  53 + mod_gzip_item_include mime ^application/x-javascript.*
  54 + mod_gzip_item_exclude mime ^image/.*
  55 + mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
  56 +</ifModule>
46 57 \ No newline at end of file
... ...