.htaccess
x
27
27
1
<IfModule mod_deflate.c>
2
AddOutputFilter DEFLATE js css
3
4
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
5
6
#The following lines are to avoid bugs with some browsers
7
BrowserMatch ^Mozilla/4 gzip-only-text/html
8
BrowserMatch ^Mozilla/4\.0[678] no-gzip
9
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
10
</IfModule>
11
12
<IfModule mod_headers.c>
13
<FilesMatch "\.(js|css|xml|gz)$">
14
Header append Vary: Accept-Encoding
15
</FilesMatch>
16
</IfModule>
17
18
ExpiresActive On
19
ExpiresDefault "access plus 1 seconds"
20
ExpiresByType text/html "access plus 1 seconds"
21
ExpiresByType image/x-icon "access plus 2592000 seconds"
22
ExpiresByType image/gif "access plus 2592000 seconds"
23
ExpiresByType image/jpeg "access plus 2592000 seconds"
24
ExpiresByType image/png "access plus 2592000 seconds"
25
ExpiresByType text/css "access plus 604800 seconds"
26
ExpiresByType text/javascript "access plus 86400 seconds"
27
ExpiresByType application/x-javascript "access plus 86400 seconds"