fds
This commit is contained in:
parent
d5f294db77
commit
3ee59794a2
14 changed files with 33 additions and 33 deletions
|
@ -357,7 +357,7 @@ def emoji(emoji):
|
|||
@limiter.exempt
|
||||
def static_service(path):
|
||||
resp = make_response(send_from_directory('assets', 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'):
|
||||
if request.path.endswith('.webp') or request.path.endswith('.gif') or request.path.endswith('.ttf') or request.path.endswith('.woff2'):
|
||||
resp.headers.remove("Cache-Control")
|
||||
resp.headers.add("Cache-Control", "public, max-age=3153600")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue