]> git.openstreetmap.org Git - chef.git/commitdiff
donate: add sane content expiry
authorGrant Slater <git@firefishy.com>
Thu, 22 Sep 2016 00:07:12 +0000 (01:07 +0100)
committerGrant Slater <git@firefishy.com>
Thu, 22 Sep 2016 00:07:12 +0000 (01:07 +0100)
cookbooks/donate/templates/default/apache.erb

index 509cf3fdd4de3cfa333488b0913018c2eacf6cf4..9f690cf3f102bd6041b4fdebe98ad96839707cf1 100644 (file)
   <IfModule mod_deflate.c>
     AddOutputFilterByType DEFLATE text/csv
   </IfModule>
+
+  <IfModule mod_expires.c>
+    ExpiresDefault "access plus 15 minutes"
+    ExpiresByType text/html "access plus 5 minutes"
+    ExpiresByType text/csv "access plus 1 minute"
+  </IfModule>
 </VirtualHost>
 
 <% end -%>