aboutsummaryrefslogtreecommitdiff
path: root/build.htaccess
diff options
context:
space:
mode:
authorMaZderMind2015-03-08 15:46:05 +0100
committerMaZderMind2015-03-08 15:46:05 +0100
commit1d79de62ffb490222246d43b7efce73b08908d8f (patch)
tree9ea0de197ed1938c0ec4c51fb64246980173d90e /build.htaccess
parenta24a67065cbba7071438a98168ce0db25aa695ac (diff)
Only Apply mod_expires rules if it is available in Apache
Diffstat (limited to '')
-rw-r--r--build.htaccess8
1 files changed, 5 insertions, 3 deletions
diff --git a/build.htaccess b/build.htaccess
index e38f2bc..f939e0f 100644
--- a/build.htaccess
+++ b/build.htaccess
@@ -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>