fix: nginx no-cache for SPA root, favicon cache-bust ?v=2

This commit is contained in:
Vadym Samoilenko 2026-05-23 21:45:02 +01:00
parent 5c2ba7503e
commit af9db666d2
2 changed files with 3 additions and 2 deletions

View file

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg?v=2" />
<title>Cohorta</title>
<meta name="description" content="AI-powered synthetic focus groups for product research" />
<meta name="author" content="AImpress" />

View file

@ -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