forked from rDrama/rDrama
sdfsdf
parent
dafb429822
commit
3a6334d977
|
@ -266,7 +266,7 @@ def static_service(path):
|
||||||
@limiter.exempt
|
@limiter.exempt
|
||||||
def images(path):
|
def images(path):
|
||||||
print('wtf')
|
print('wtf')
|
||||||
resp = make_response(send_from_directory('./images', path.replace('.WEBP','.webp')))
|
resp = make_response(send_from_directory('../images', path.replace('.WEBP','.webp')))
|
||||||
resp.headers.remove("Cache-Control")
|
resp.headers.remove("Cache-Control")
|
||||||
resp.headers.add("Cache-Control", "public, max-age=2628000")
|
resp.headers.add("Cache-Control", "public, max-age=2628000")
|
||||||
if request.path.endswith('.webp'):
|
if request.path.endswith('.webp'):
|
||||||
|
|
Loading…
Reference in New Issue