fix: nginx no-cache for SPA root, favicon cache-bust ?v=2
This commit is contained in:
parent
5c2ba7503e
commit
af9db666d2
2 changed files with 3 additions and 2 deletions
|
|
@ -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" />
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue