diff options
author | Javier Hernandez <jhernandez@soleta.eu> | 2024-01-19 13:13:56 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-01-19 13:19:24 +0100 |
commit | 3844a3a48abb7c6d1d7204a0a0131c82c87206b3 (patch) | |
tree | 8c93cef71e6822e7410a7fa1ed5f94c9024266a2 | |
parent | 1847206ba1d7ea85f272bc64a2955fcdadf19ac8 (diff) |
templates: Add versioning to avoid browser caching ogcp.js errors
Add version parameter to ogcp.js url. This is so that, if ogcp.js is
modified, the browser is able to see that that file has been changed and
that it has to load the new version instead of acquiring it from cache.
We have experienced stranged errors, related to browsers caching old
javascript files, leading to python flask backend backtraces
-rw-r--r-- | ogcp/templates/base.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ogcp/templates/base.html b/ogcp/templates/base.html index 73138b9..9cb004b 100644 --- a/ogcp/templates/base.html +++ b/ogcp/templates/base.html @@ -111,7 +111,7 @@ <!-- ChartJS --> <script src="{{ url_for('static', filename='AdminLTE/plugins/chart.js/Chart.min.js') }}"></script> - <script src="{{ url_for('static', filename='js/ogcp.js') }}"></script> + <script src="{{ url_for('static', filename='js/ogcp.js') }}?v=1"></script> <script> // error messages |