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:
parent
6d8991ee65
commit
e99a045c41
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue