1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Made caching times a bit more reasonable

This commit is contained in:
Krateng 2019-05-14 21:58:18 +02:00
parent 3b0b9eaa78
commit 9f5a705504

View File

@ -109,7 +109,7 @@ def static_image(pth):
response = static_file("images/" + pth,root="")
#response = static_file("images/" + pth,root="")
response.set_header("Cache-Control", "public, max-age=604800")
response.set_header("Cache-Control", "public, max-age=86400")
return response
#@webserver.route("/<name:re:.*\\.html>")
@ -120,7 +120,7 @@ def static_image(pth):
@webserver.route("/<name:re:.*\\.ico>")
def static(name):
response = static_file("website/" + name,root="")
response.set_header("Cache-Control", "public, max-age=604800")
response.set_header("Cache-Control", "public, max-age=3600")
return response
@webserver.route("/<name>")