- nginx: Cache-Control no-cache für index.html — Browser hingen sonst auf alten JS-Bundles (gehashte Assets bleiben immutable gecacht) - Karten: Pipeline-Tokens ⟦PHn:wort⟧ aus der Übersetzung werden als blankes Wort gerendert/gesprochen statt roh angezeigt (Datenfix gehört ins Backend) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
22 lines
628 B
Nginx Configuration File
22 lines
628 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# SPA fallback — index.html nie cachen, sonst hängen Browser auf alten Bundles
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
add_header Cache-Control "no-cache";
|
|
}
|
|
|
|
# Cache static assets
|
|
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
|
expires 1y;
|
|
add_header Cache-Control "public, immutable";
|
|
}
|
|
|
|
gzip on;
|
|
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
|
}
|