VisionMask: module.exports -> export default (was breaking as F.VisionMask is not a constructor) Build system: content-hashed bundles (bundle.HASH.js) bypass Cloudflare's 4h edge cache Nginx: no-cache headers for .js and index.html HTML: inline diagnostic script + versioned bundle URL Diagnostic: try/catch on create(), debug crosshair + text overlay, per-component logging Phaser: banner=true, debug physics, window.__IR_GAME export
29 lines
706 B
Nginx Configuration File
29 lines
706 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# Force fresh fetch for bundle.js (Cloudflare was caching stale deploys)
|
|
location ~* \.js$ {
|
|
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
|
|
expires -1;
|
|
}
|
|
|
|
# Also prevent HTML caching so inline diagnostic scripts take effect
|
|
location = /index.html {
|
|
add_header Cache-Control "no-store, no-cache, must-revalidate, max-age=0";
|
|
expires -1;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri /index.html;
|
|
}
|
|
|
|
location /assets/ {
|
|
expires 1y;
|
|
add_header Cache-Control "public, immutable";
|
|
}
|
|
}
|