From 25e0f87d97ff31a1ea3228fe55047a52d18f08da Mon Sep 17 00:00:00 2001 From: Codex Date: Fri, 30 Oct 2026 11:57:35 +0800 Subject: [PATCH] Cache successful static images without caching missing-file errors --- docs/deployment/illustrations-static.nginx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/deployment/illustrations-static.nginx b/docs/deployment/illustrations-static.nginx index add3da9a..8a75db38 100644 --- a/docs/deployment/illustrations-static.nginx +++ b/docs/deployment/illustrations-static.nginx @@ -4,7 +4,7 @@ location ^~ /images/illustrations/ { if ($uri !~ "^/images/illustrations/[a-f0-9]{64}\.(webp|png|jpg|gif)$") { return 404; } try_files $uri =404; etag on; - add_header Cache-Control "public, max-age=31536000, immutable" always; + add_header Cache-Control "public, max-age=31536000, immutable"; add_header X-Content-Type-Options nosniff always; add_header X-Illustration-Delivery static always; }