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
master
Javier Hernandez 2024-01-19 13:13:56 +01:00 committed by OpenGnSys Support Team
parent 1847206ba1
commit 3844a3a48a
1 changed files with 1 additions and 1 deletions

View File

@ -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