cachebust style and js at build time
This commit is contained in:
@ -141,4 +141,11 @@ def create_app():
|
||||
for id_, text in matches
|
||||
]
|
||||
|
||||
# this only happens at build time but
|
||||
# build time is when updates are done anyway
|
||||
# sooo... /shrug
|
||||
@app.template_filter('cachebust')
|
||||
def cachebust(subject):
|
||||
return f"{subject}?v={str(int(time.time()))}"
|
||||
|
||||
return app
|
||||
|
Reference in New Issue
Block a user