mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-24 16:09:29 +08:00
Settings are injected into index.html and the page also embeds a per-request CSP nonce. A cached document can paint stale branding, and answering If-None-Match with 304 while minting a new nonce makes the browser reuse HTML whose nonce no longer matches the CSP header. Mark every settings-injected HTML response as uncacheable for browsers and CDN edges, and only allow 304 when the response has no nonce.