Project

General

Profile

Actions

Feature #2730

open

Force browser to reload npm libs

Added by Bernhard Koschiček-Krombholz about 8 hours ago.

Status:
Assigned
Priority:
Normal
Category:
UI
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>

No data to display

Actions

Also available in: Atom PDF