Only Apply mod_expires rules if it is available in Apache

This commit is contained in:
MaZderMind 2015-03-08 15:46:05 +01:00
parent a24a67065c
commit 1d79de62ff

View file

@ -3,6 +3,8 @@ DirectoryIndex index.html
# Show a known page in case of as miss
ErrorDocument 404 /404.html
# Allow Caches & Proxies to Cache all resources
ExpiresActive On
ExpiresDefault "access plus 4 hours"
<IfModule expires.c>
# Allow Caches & Proxies to Cache all resources
ExpiresActive On
ExpiresDefault "access plus 4 hours"
</IfModule>