From af9db666d27e5c4fd0b51cf9ef4cd78a62fae4ce Mon Sep 17 00:00:00 2001 From: Vadym Samoilenko Date: Sat, 23 May 2026 21:45:02 +0100 Subject: [PATCH] fix: nginx no-cache for SPA root, favicon cache-bust ?v=2 --- index.html | 2 +- nginx.conf | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index c207c94f..e13d5f07 100755 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - + Cohorta diff --git a/nginx.conf b/nginx.conf index 26e5df49..347c7077 100644 --- a/nginx.conf +++ b/nginx.conf @@ -17,9 +17,10 @@ server { return 502 "nginx should not serve /socket.io — check Traefik routing priorities"; } - # SPA fallback — all other paths serve index.html + # SPA fallback — all other paths serve index.html (never cached) location / { try_files $uri $uri/ /index.html; + add_header Cache-Control "no-cache, no-store, must-revalidate"; } # Cache static assets aggressively