Appended a version flag to all CSS/JS references to invalidate browser cache after an upgrade

This commit is contained in:
Jeremy Stretch 2017-03-30 15:40:00 -04:00
parent f6ea09e581
commit 3ed3e93b25
16 changed files with 18 additions and 18 deletions

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="{% static 'bootstrap-3.3.6-dist/css/bootstrap.min.css' %}">
<link rel="stylesheet" href="{% static 'font-awesome-4.6.3/css/font-awesome.min.css' %}">
<link rel="stylesheet" href="{% static 'jquery-ui-1.11.4/jquery-ui.css' %}">
<link rel="stylesheet" href="{% static 'css/base.css' %}">
<link rel="stylesheet" href="{% static 'css/base.css' %}?v{{ settings.VERSION }}">
<link rel="icon" type="image/png" href="{% static 'img/netbox.ico' %}" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
</head>
@ -308,7 +308,7 @@
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
<script src="{% static 'jquery-ui-1.11.4/jquery-ui.min.js' %}"></script>
<script src="{% static 'bootstrap-3.3.6-dist/js/bootstrap.min.js' %}"></script>
<script src="{% static 'js/forms.js' %}"></script>
<script src="{% static 'js/forms.js' %}?v{{ settings.VERSION }}"></script>
{% block javascript %}{% endblock %}
</body>
</html>

View File

@ -90,5 +90,5 @@
{% endblock %}
{% block javascript %}
<script src="{% static 'js/livesearch.js' %}"></script>
<script src="{% static 'js/livesearch.js' %}?v{{ settings.VERSION }}"></script>
{% endblock %}

View File

@ -199,5 +199,5 @@
{% endblock %}
{% block javascript %}
<script src="{% static 'js/graphs.js' %}"></script>
<script src="{% static 'js/graphs.js' %}?v{{ settings.VERSION }}"></script>
{% endblock %}

View File

@ -58,5 +58,5 @@
{% endblock %}
{% block javascript %}
<script src="{% static 'js/livesearch.js' %}"></script>
<script src="{% static 'js/livesearch.js' %}?v{{ settings.VERSION }}"></script>
{% endblock %}

View File

@ -58,5 +58,5 @@
{% endblock %}
{% block javascript %}
<script src="{% static 'js/livesearch.js' %}"></script>
<script src="{% static 'js/livesearch.js' %}?v{{ settings.VERSION }}"></script>
{% endblock %}

View File

@ -629,6 +629,6 @@ $(".interface-toggle").click(function() {
return toggleConnection($(this), "dcim/interface-connections/");
});
</script>
<script src="{% static 'js/graphs.js' %}"></script>
<script src="{% static 'js/secrets.js' %}"></script>
<script src="{% static 'js/graphs.js' %}?v{{ settings.VERSION }}"></script>
<script src="{% static 'js/secrets.js' %}?v{{ settings.VERSION }}"></script>
{% endblock %}

View File

@ -93,5 +93,5 @@
{% endblock %}
{% block javascript %}
<script src="{% static 'js/livesearch.js' %}"></script>
<script src="{% static 'js/livesearch.js' %}?v{{ settings.VERSION }}"></script>
{% endblock %}

View File

@ -58,5 +58,5 @@
{% endblock %}
{% block javascript %}
<script src="{% static 'js/livesearch.js' %}"></script>
<script src="{% static 'js/livesearch.js' %}?v{{ settings.VERSION }}"></script>
{% endblock %}

View File

@ -58,5 +58,5 @@
{% endblock %}
{% block javascript %}
<script src="{% static 'js/livesearch.js' %}"></script>
<script src="{% static 'js/livesearch.js' %}?v{{ settings.VERSION }}"></script>
{% endblock %}

View File

@ -260,5 +260,5 @@
{% endblock %}
{% block javascript %}
<script src="{% static 'js/graphs.js' %}"></script>
<script src="{% static 'js/graphs.js' %}?v{{ settings.VERSION }}"></script>
{% endblock %}

View File

@ -68,5 +68,5 @@
{% endblock %}
{% block javascript %}
<script src="{% static 'js/livesearch.js' %}"></script>
<script src="{% static 'js/livesearch.js' %}?v{{ settings.VERSION }}"></script>
{% endblock %}

View File

@ -79,5 +79,5 @@
{% endblock %}
{% block javascript %}
<script src="{% static 'js/livesearch.js' %}"></script>
<script src="{% static 'js/livesearch.js' %}?v{{ settings.VERSION }}"></script>
{% endblock %}

View File

@ -97,5 +97,5 @@
{% endblock %}
{% block javascript %}
<script src="{% static 'js/secrets.js' %}"></script>
<script src="{% static 'js/secrets.js' %}?v{{ settings.VERSION }}"></script>
{% endblock %}

View File

@ -70,5 +70,5 @@
{% endblock %}
{% block javascript %}
<script src="{% static 'js/secrets.js' %}"></script>
<script src="{% static 'js/secrets.js' %}?v{{ settings.VERSION }}"></script>
{% endblock %}

View File

@ -68,5 +68,5 @@
{% endblock %}
{% block javascript %}
<script src="{% static 'js/secrets.js' %}"></script>
<script src="{% static 'js/secrets.js' %}?v{{ settings.VERSION }}"></script>
{% endblock %}

View File

@ -56,5 +56,5 @@
{% endblock %}
{% block javascript %}
<script src="{% static 'js/secrets.js' %}"></script>
<script src="{% static 'js/secrets.js' %}?v{{ settings.VERSION }}"></script>
{% endblock %}