4ian / GDevelop

:video_game: Open-source, cross-platform game engine designed to be used by everyone.
https://gdevelop.io
Other
6.55k stars 722 forks source link

No caching in preview server #6553

Closed arthuro555 closed 1 month ago

arthuro555 commented 1 month ago

Adds no-cache headers to the network preview. This changes nothing when accessing the preview server directly, but allows proxying the network preview, while instructing the proxy not to indefinitely cache the files.

In my use case, I use a cloudflare tunnel for accessing my network previews over https (for some web APIs) and over different networks, but I need to use devtools to add no-cache headers to browser requests every time I want to reload the page, because the generated code files get cached by Cloudflare CDN.