Selaa lähdekoodia

Fixes #16003: Enable cache busting on upgrade for setmode.js

Jeremy Stretch 2 vuotta sitten
vanhempi
commit
ccf32244d3
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      netbox/templates/base/base.html

+ 1 - 1
netbox/templates/base/base.html

@@ -20,7 +20,7 @@
     {# Initialize color mode #}
     <script
       type="text/javascript"
-      src="{% static 'setmode.js' %}"
+      src="{% static 'setmode.js' %}?v={{ settings.VERSION }}"
       onerror="window.location='{% url 'media_failure' %}?filename=setmode.js'">
     </script>
     <script type="text/javascript">