following the last commit, it's prudent to invalidate all static urls

ive been meaning to change that url structure anyway because it's real
goofy to have these 'static-483914848324' directories
This commit is contained in:
codl 2017-08-24 18:49:37 +02:00
parent 6d8991ee65
commit e99a045c41
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
from flask import url_for, abort
import os
def cachebust(app):
@app.route('/static-<int:timestamp>/<path:filename>')
@app.route('/static-cb/<int:timestamp>/<path:filename>')
def static_cachebust(timestamp, filename):
path = os.path.join(app.static_folder, filename)
try: