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

Added robots.txt

This commit is contained in:
Krateng 2019-05-26 18:35:24 +02:00
parent 01fe8771bd
commit 5ea7605bbf
2 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,7 @@ def static_image(pth):
@webserver.route("/<name:re:.*\\.png>") @webserver.route("/<name:re:.*\\.png>")
@webserver.route("/<name:re:.*\\.jpeg>") @webserver.route("/<name:re:.*\\.jpeg>")
@webserver.route("/<name:re:.*\\.ico>") @webserver.route("/<name:re:.*\\.ico>")
@webserver.route("/<name:re:.*\\.txt>")
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=3600") response.set_header("Cache-Control", "public, max-age=3600")

2
website/robots.txt Normal file
View File

@ -0,0 +1,2 @@
User-agent: *
Disallow: /api/