Add version query parameter to Leaflet CSS and JS
This commit is contained in:
parent
9dcfd3e3c1
commit
4c2dbd2e5f
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
{% block styles %}
|
||||
<link rel="stylesheet"
|
||||
href="{{ get_url(path='leaflet/leaflet.css') | safe }}" />
|
||||
href="{{ get_url(path='leaflet/leaflet.css') | safe }}?v={{ now(timestamp=true) }}" />
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
@ -28,7 +28,7 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
<script src="{{ get_url(path='leaflet/leaflet.js') | safe }}"></script>
|
||||
<script src="{{ get_url(path='leaflet/leaflet.js') | safe }}?v={{ now(timestamp=true) }}"></script>
|
||||
<script>
|
||||
L.Icon.Default.imagePath = "{{ get_url(path='leaflet/images/', trailing_slash=true) | safe }}";
|
||||
|
||||
|
|
Loading…
Reference in a new issue