# _headers: lets Synthcade show your game in its frame. # For Cloudflare (Pages, or Workers static assets) and Netlify. # Put it next to your index.html, named _headers with no extension. # What each line does: https://synthcade.net/docs/developers/hosting-your-game # Every file: the sites allowed to show the game in a frame. # Do not add X-Frame-Options: it would block the frame. /* Content-Security-Policy: frame-ancestors 'self' https://synthcade.net https://synthcade.lol https://synthcade.org https://synthcade.games X-Content-Type-Options: nosniff Referrer-Policy: strict-origin-when-cross-origin # The page itself: check for a new build on every visit, so an update shows at once. / Cache-Control: no-cache /index.html Cache-Control: no-cache # Only for a folder whose file names change with every build (hashed names, # such as Vite's assets/index-3f9a1c.js): keep them for a year. Remove the # # from the next two lines and change the folder name to yours. # /assets/* # Cache-Control: public, max-age=31536000, immutable