Commit 177a1f19c2ed9157000f9fc05d136a259f9a10e8

Authored by Alex Savenko
1 parent 9b26598c

htaccess

Showing 1 changed file with 10 additions and 0 deletions   Show diff stats
.htaccess
... ... @@ -19,4 +19,14 @@ AddDefaultCharset utf-8
19 19 RewriteCond %{HTTP:Accept-encoding} gzip
20 20 RewriteCond %{REQUEST_FILENAME}.gz -f
21 21 RewriteRule ^(.*)$ $1.gz [QSA,L]
  22 +</IfModule>
  23 +
  24 +<IfModule mod_gzip.c>
  25 + mod_gzip_on Yes
  26 + mod_gzip_dechunk Yes
  27 + mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
  28 + mod_gzip_item_include mime ^text\.*
  29 + mod_gzip_item_include mime ^application/x-javascript.*
  30 + mod_gzip_item_exclude mime ^image\.*
  31 + mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
22 32 </IfModule>
23 33 \ No newline at end of file
... ...