sneed
This commit is contained in:
parent
9f69e67fcc
commit
32c29f39e7
48 changed files with 10 additions and 10 deletions
|
@ -155,7 +155,7 @@ def static_service(path):
|
|||
resp = make_response(send_from_directory('./assets', path))
|
||||
if request.path.endswith('.gif') or request.path.endswith('.ttf') or request.path.endswith('.woff') or request.path.endswith('.woff2'):
|
||||
resp.headers.remove("Cache-Control")
|
||||
resp.headers.add("Cache-Control", "public, max-age=31556952")
|
||||
resp.headers.add("Cache-Control", "public, max-age=2628000")
|
||||
|
||||
return resp
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue