dsffds
This commit is contained in:
parent
ac939ea602
commit
a891d03309
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ def archives(path):
|
|||
|
||||
@app.get('/static/<path:path>')
|
||||
@limiter.exempt
|
||||
def static_service(path):
|
||||
def static_service2(path):
|
||||
resp = make_response(send_from_directory('./static', path))
|
||||
if request.path.endswith('.webp') or request.path.endswith('.gif') or request.path.endswith('.ttf') or request.path.endswith('.woff') or request.path.endswith('.woff2'):
|
||||
resp.headers.remove("Cache-Control")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue