]> git.openstreetmap.org Git - chef.git/commitdiff
Improve cacheability of static resources
authorTom Hughes <tom@compton.nu>
Tue, 18 Jun 2019 07:47:05 +0000 (08:47 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 18 Jun 2019 07:48:26 +0000 (08:48 +0100)
cookbooks/web/templates/default/apache.frontend.erb

index 5944e5f18e5f146f3386ba5f8a9a205a3f559588..1f53272b2dfc33301392718ef886afaaf497acc5 100644 (file)
   # Set expiry for assets
   #
   <Location /assets/>
-    Header unset ETag
-    FileETag None
+    Header unset Last-Modified
+    FileETag Size
 
     ExpiresDefault "access plus 1 year"
+    Header set Cache-Control "immutable, max-age=31536000"
   </Location>
 
   #