Actions
Feature #2730
closedForce browser to reload npm libs
Status:
Closed
Priority:
Normal
Assignee:
Category:
Backend
Target version:
Start date:
2026-02-09
Estimated time:
Description
Following the recent npm update, several users encountered issues because their browsers continued to use cached versions of our libraries. While clearing the cache manually (Ctrl+F5) resolves this, it is an inconvenient 'fix' that shouldn't be required of the end-user.
To address this, I suggest Cache Busting. By appending the OpenAtlas version number as a query parameter to our <script> and <link> tags in Jinja2, we ensure that the browser identifies updated files as new assets and fetches them immediately upon a new release.
E.g.:
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css', v=config.VERSION ) }}">
<script src="{{ url_for('static', filename='js/main.js', v=config.VERSION ) }}"></script>
Updated by Bernhard Koschiček-Krombholz 16 days ago
- Category changed from UI to Backend
- Status changed from Assigned to Closed
I changed it and pushed it to develop. If some problems arise, please give feedback!
Actions