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:
parent
3b0b9eaa78
commit
9f5a705504
|
@ -109,7 +109,7 @@ def static_image(pth):
|
||||||
response = static_file("images/" + pth,root="")
|
response = static_file("images/" + pth,root="")
|
||||||
|
|
||||||
#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
|
return response
|
||||||
|
|
||||||
#@webserver.route("/<name:re:.*\\.html>")
|
#@webserver.route("/<name:re:.*\\.html>")
|
||||||
|
@ -120,7 +120,7 @@ def static_image(pth):
|
||||||
@webserver.route("/<name:re:.*\\.ico>")
|
@webserver.route("/<name:re:.*\\.ico>")
|
||||||
def static(name):
|
def static(name):
|
||||||
response = static_file("website/" + name,root="")
|
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
|
return response
|
||||||
|
|
||||||
@webserver.route("/<name>")
|
@webserver.route("/<name>")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user