cachebust style and js at build time

This commit is contained in:
2025-08-04 03:10:38 +03:00
parent f08c60de75
commit 7702384c40
6 changed files with 15 additions and 8 deletions

View File

@ -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