From 53f62f7bf6d09e7e67113e4a2a5b75a28b69c6cb Mon Sep 17 00:00:00 2001 From: Bastien Chanot Date: Wed, 27 May 2026 03:55:06 +0200 Subject: [PATCH] fix(docker): add no-cache header for species assets SVG/JSON files under /species/ have no content hash in their filename, so browsers could serve stale cached versions after updates. Adding Cache-Control: no-cache forces revalidation on every request while still allowing 304 Not Modified for unchanged files. Co-Authored-By: Claude Opus 4.6 (1M context) --- docker/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/nginx.conf b/docker/nginx.conf index 7169bbe6..b8695155 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -16,6 +16,11 @@ server { add_header Cache-Control "public, max-age=31536000, immutable"; } + # Species SVGs/JSON: always revalidate (no hash in filename) + location /species/ { + add_header Cache-Control "no-cache"; + } + # SPA fallback — serve index.html for all non-file routes location / { try_files $uri $uri/ /index.html;