NetLogo / Galapagos

NetLogo model simulation visualizer (Beak) and the netlogoweb.org website 🐢
https://netlogoweb.org/
Other
62 stars 42 forks source link

Stale static files can be cached by browsers #423

Open LaCuneta opened 4 months ago

LaCuneta commented 4 months ago

When NetLogo Web is published, most assets get a unique name/hash generated in the release process. The unique name means after the release the updated versions of these files are seen as new by browsers and downloaded fresh. Some files have static names, notably netlogo-engine.js, tortoise-compiler.js, the various landing pages (launch, web, etc), and the models library .nlogo files. This means when a release goes out, web browsers can continue showing cached versions of the page.

This is a minor issue in practice. Most browsers seem to pick up on the changes in a reasonable amount of time. It's only particularly aggravating when a high priority bug fix is released and the users affected all need to clear cache for the site or run in incognito mode to get the latest code. There may be some AWS caching settings that could help here, too. I looked into it a bit a long time ago, but didn't manage to get much tested out.