# This sets up browser cache control
# BEGIN Cache-Control Headers
<ifModule mod_headers.c>
<filesMatch “\.(ico|jpe?g|png|gif|swf)$”>
Header set Cache-Control “public”
</filesMatch>
<filesMatch “\.(css)$”>
Header set Cache-Control “public”
</filesMatch>
<filesMatch “\.(js)$”>
Header set Cache-Control “private”
</filesMatch>
<filesMatch “\.(x?html?|php)$”>
Header set Cache-Control “private, must-revalidate”
</filesMatch>
</ifModule>
# END Cache-Control Headers
<IfModule mod_expires.c>
ExpiresActive On
# Images
ExpiresByType image/jpeg “access plus 1 months”
ExpiresByType image/jpg “access plus 1 months”
ExpiresByType image/gif “access plus 1 months”
ExpiresByType image/png “access plus 1 months”
ExpiresByType image/webp “access plus 1 months”
ExpiresByType image/svg+xml “access plus 1 months”
ExpiresByType image/x-icon “access plus 1 months”
# Video
ExpiresByType video/mp4 “access plus 1 months”
ExpiresByType video/mpeg “access plus 1 months”
# CSS, JavaScript
ExpiresByType text/css “access plus 1 months”
ExpiresByType text/html “access plus 15 days”
ExpiresByType text/js “access plus 1 months”
ExpiresByType text/javascript “access plus 1 months”
ExpiresByType application/javascript “access plus 1 week”
# Others
ExpiresByType application/pdf “access plus 1 months”
ExpiresByType application/x-shockwave-flash “access plus 1 months”
# Everything else
ExpiresDefault “access plus 1 days”
</IfModule>