Commit 4a1b06d52135e6120e50cb4f5b5a89befdfe7a5e
1 parent
0caafbcf
gzip
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
.htaccess
... | ... | @@ -173,3 +173,13 @@ RewriteRule ^(.*)$ $1.gz [QSA,L] |
173 | 173 | BrowserMatch "MSIE" force-no-vary |
174 | 174 | BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary |
175 | 175 | </IfModule> |
176 | + | |
177 | +<IfModule mod_gzip.c> | |
178 | +mod_gzip_on Yes | |
179 | +mod_gzip_dechunk Yes | |
180 | +mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$ | |
181 | +mod_gzip_item_include mime ^text\.* | |
182 | +mod_gzip_item_include mime ^application/x-javascript.* | |
183 | +mod_gzip_item_exclude mime ^image\.* | |
184 | +mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* | |
185 | +</IfModule> | ... | ... |