1
0
Fork 0

Add version query parameter to Leaflet CSS and JS

This commit is contained in:
Mo 2023-05-31 01:11:40 +02:00
parent 9dcfd3e3c1
commit 4c2dbd2e5f

View file

@ -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 }}";