From 0863b0e08cf1cc9cafaa531e11701f58b989acef Mon Sep 17 00:00:00 2001 From: Ryan Malloy Date: Sat, 21 Feb 2026 15:36:41 -0700 Subject: [PATCH] Fix cache headers: force revalidation on content, correct _astro path - Add Cache-Control: no-cache as default so browsers revalidate via ETag instead of heuristic caching stale llms.txt and HTML pages - Fix hashed asset path from /docs/_astro/* to /_astro/* (root is /srv) - _astro/* immutable rule still applies for hashed Vite bundles --- docs/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/Dockerfile b/docs/Dockerfile index 476fd73..197acfc 100644 --- a/docs/Dockerfile +++ b/docs/Dockerfile @@ -30,9 +30,10 @@ COPY <<'CADDYFILE' /etc/caddy/Caddyfile X-Content-Type-Options nosniff X-Frame-Options DENY Referrer-Policy strict-origin-when-cross-origin + Cache-Control "no-cache" } - header /docs/_astro/* { + header /_astro/* { Cache-Control "public, max-age=31536000, immutable" } }