- forcing browser to refresh images via timestamp

This commit is contained in:
Ulrich Knechtelsdorfer
2016-11-28 00:17:35 +01:00
parent 8ae2683d71
commit a96342c815
5 changed files with 10 additions and 5 deletions

View File

@@ -18,7 +18,7 @@
<div class="center">
<h2>{{product.name}}</h2>
{% set fils = "product_%s.png" % product.name %}
<img src="{{ url_for('static', filename=fils) }}" /><br>
<img src="{{ url_for('static', filename=fils) }}?{{timestamp}}" /><br>
</div>
<div class="right">
{{"%0.2f" % product.price}} €