- 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

@@ -13,7 +13,12 @@ from consumption import Consumption
import bcrypt
import os
from settings import *
import time
# makes the variable timehex available in all templates
@app.context_processor
def inject_time():
return dict(timestamp=time.time().__int__())
@app.route('/static/<path:path>')
def static_proxy(path):