From 71782b10c75d33947d536a9c8adccb039601155d Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 15 Aug 2024 18:11:53 +0100 Subject: [PATCH] Only set a long expiry on assets which exist --- cookbooks/web/templates/default/apache.frontend.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" # -- 2.39.5