From: Tom Hughes Date: Thu, 15 Aug 2024 17:11:53 +0000 (+0100) Subject: Only set a long expiry on assets which exist X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/71782b10c75d33947d536a9c8adccb039601155d Only set a long expiry on assets which exist --- diff --git a/cookbooks/web/templates/default/apache.frontend.erb b/cookbooks/web/templates/default/apache.frontend.erb index 9a2cd10a7..39f2a6007 100644 --- a/cookbooks/web/templates/default/apache.frontend.erb +++ b/cookbooks/web/templates/default/apache.frontend.erb @@ -123,7 +123,7 @@ ErrorLog /var/log/apache2/error.log FileETag Size ExpiresDefault "access plus 1 year" - Header set Cache-Control "immutable, max-age=31536000" + Header set Cache-Control "immutable, max-age=31536000" "expr=%{REQUEST_STATUS} == 200" #