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 5944e5f..1f53272 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>
 
   #