# BEGIN Expire headers
02
<ifModule mod_expires.c>
03
ExpiresActive On
04
ExpiresDefault "access plus 1 seconds"
05
ExpiresByType image/x-icon "access plus 2592000 seconds"
06
ExpiresByType image/jpeg "access plus 2592000 seconds"
07
ExpiresByType image/png "access plus 2592000 seconds"
08
ExpiresByType image/gif "access plus 2592000 seconds"
09
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
10
ExpiresByType text/css "access plus 604800 seconds"
11
ExpiresByType text/javascript "access plus 216000 seconds"
12
ExpiresByType application/javascript "access plus 216000 seconds"
13
ExpiresByType application/x-javascript "access plus 216000 seconds"
14
ExpiresByType text/html "access plus 600 seconds"
15
ExpiresByType application/xhtml+xml "access plus 600 seconds"
16
</ifModule>
17
# END Expire headers
18
19
# BEGIN Cache-Control Headers
20
<ifModule mod_headers.c>
21
<filesMatch "\.(ico|jpe?g|png|gif|swf)$">
22
Header set Cache-Control "max-age=2592000, public"
23
</filesMatch>
24
<filesMatch "\.(css)$">
25
Header set Cache-Control "max-age=604800, public"
26
</filesMatch>
27
<filesMatch "\.(js)$">
28
Header set Cache-Control "max-age=216000, private"
29
</filesMatch>
30
<filesMatch "\.(x?html?|php)$">
31
Header set Cache-Control "max-age=600, private, must-revalidate"
32
</filesMatch>
33
</ifModule>
34
# END Cache-Control Headers
35
36
# BEGIN Compress text files
37
<ifModule mod_deflate.c>
38
<filesMatch "\.(css|js|x?html?|php)$">
39
SetOutputFilter DEFLATE
40
</filesMatch>
41
</ifModule>
42
# END Compress text files