general: add a timestamp to static URLs, to avoid caching issues (#80228)
gitea/passerelle/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2023-08-03 09:27:14 +02:00
parent 7178f7c4d0
commit a19073c7e9
2 changed files with 3 additions and 3 deletions

View File

@ -1,12 +1,12 @@
{% extends "gadjo/base.html" %}
{% load i18n static %}
{% load gadjo i18n static %}
{% block page-title %}Passerelle{% endblock %}
{% block site-title %}Passerelle{% endblock %}
{% block footer %}Passerelle — Copyright © Entr'ouvert{% endblock %}
{% block extrascripts %}
{{ block.super }}
<script src="{% static "js/passerelle.js" %}"></script>
<script src="{% static "js/passerelle.js" %}?{% start_timestamp %}"></script>
{% endblock %}
{% block logout-url %}{% url 'auth_logout' %}{% endblock %}

View File

@ -2,7 +2,7 @@
{% load i18n gadjo static %}
{% block extrascripts %}
<script src="{% static "js/slugify.js" %}"></script>
<script src="{% static "js/slugify.js" %}?{% start_timestamp %}"></script>
{{ block.super }}
{% endblock %}