jalview / jalview-js

JavaScript artefacts and deployment documents for JalviewJS
https://jalview.github.io/jalview-js/
GNU Affero General Public License v3.0
13 stars 5 forks source link

Implement a mechanism for cache-busting #17

Open foreveremain opened 2 years ago

foreveremain commented 2 years ago

Updating an installation of JalviewJS does not always ensure users use the latest version - since browsers maintain a local cache, particularly for compiled javascript.

There's plenty of discussions about how to do this https://stackoverflow.com/questions/118884/how-to-force-the-browser-to-reload-cached-css-and-javascript-files - but basically all boil down to either 1) changing the name of the javascript resource (e.g. by appending a version number or md5 hash) or 2)Appending a query string.

There are also various server side trickeries that can persuade the browser to refresh its cache...