1 # BEGIN Compress text files
2 <ifModule mod_deflate.c>
3 <filesMatch ".(css|js|x?html?|php)$">
4 SetOutputFilter DEFLATE
7 # END Compress text files
10 <ifModule mod_expires.c>
12 ExpiresDefault "access plus 1 seconds"
13 ExpiresByType image/x-icon "access plus 2592000 seconds"
14 ExpiresByType image/jpeg "access plus 2592000 seconds"
15 ExpiresByType image/png "access plus 2592000 seconds"
16 ExpiresByType image/gif "access plus 2592000 seconds"
17 ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
18 ExpiresByType text/css "access plus 604800 seconds"
19 ExpiresByType text/javascript "access plus 216000 seconds"
20 ExpiresByType application/javascript "access plus 216000 seconds"
21 ExpiresByType application/x-javascript "access plus 216000 seconds"
22 ExpiresByType text/html "access plus 600 seconds"
23 ExpiresByType application/xhtml+xml "access plus 600 seconds"
27 # BEGIN Cache-Control Headers
28 <ifModule mod_headers.c>
29 <filesMatch ".(ico|jpe?g|png|gif|swf)$">
30 Header set Cache-Control "max-age=2592000, public"
32 <filesMatch ".(css)$">
33 Header set Cache-Control "max-age=604800, public"
36 Header set Cache-Control "max-age=216000, private"
38 <filesMatch ".(x?html?|php)$">
39 Header set Cache-Control "max-age=600, private, must-revalidate"
42 # END Cache-Control Headers
44 # BEGIN Turn ETags Off
45 <ifModule mod_headers.c>
55 mod_gzip_item_include file .(html?|txt|css|js)$
56 mod_gzip_item_include handler ^cgi-script$
57 mod_gzip_item_include mime ^text/.*
58 mod_gzip_item_include mime ^application/x-javascript.*
59 mod_gzip_item_exclude mime ^image/.*
60 mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*