apache: configure cache-control header
[ansible.git] / roles / apache / templates / caching.conf
diff --git a/roles/apache/templates/caching.conf b/roles/apache/templates/caching.conf
new file mode 100644 (file)
index 0000000..7880aec
--- /dev/null
@@ -0,0 +1,7 @@
+<FilesMatch "\.(gif|jpe?g|png|ico|js|css)$">
+    Header set Cache-Control "max-age=86400, public"
+</FilesMatch>
+
+<FilesMatch "\.html?$">
+    Header set Cache-Control "no-cache"
+</FilesMatch>