projects
/
ansible.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
roles/apache/templates/caching.conf
@@ -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>