Merge pull request #310 from HungryFeline/patch-4

Checking if mod_headers is loaded before trying to set Cache-Control headers
This commit is contained in:
Shish 2013-07-03 11:39:31 -07:00
commit dbc0548bdc

View File

@ -31,7 +31,9 @@ DefaultType image/jpeg
<IfModule mod_expires.c>
ExpiresActive On
<FilesMatch "([0-9a-f]{32}|\.(gif|jpe?g|png|css|js))$">
Header set Cache-Control "public, max-age=2629743"
<IfModule mod_headers.c>
Header set Cache-Control "public, max-age=2629743"
</IfModule>
ExpiresDefault "access plus 1 month"
</FilesMatch>
#ExpiresByType text/html "now"