aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-05-17 23:44:43 +0200
committerDaniel Schadt <kingdread@gmx.de>2023-05-17 23:44:43 +0200
commit5aedaf987162072ce4ce1a68d80b89f151520ed5 (patch)
tree767e840efa96904a05718dfc0734ecf8101e2b1d
parente05fd862cd06d5ff1964dc3aea50222073802dca (diff)
downloadfietsboek-5aedaf987162072ce4ce1a68d80b89f151520ed5.tar.gz
fietsboek-5aedaf987162072ce4ce1a68d80b89f151520ed5.tar.bz2
fietsboek-5aedaf987162072ce4ce1a68d80b89f151520ed5.zip
add cache header to user tiles
-rw-r--r--fietsboek/views/profile.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/fietsboek/views/profile.py b/fietsboek/views/profile.py
index e73df42..fcb08ee 100644
--- a/fietsboek/views/profile.py
+++ b/fietsboek/views/profile.py
@@ -157,7 +157,12 @@ def profile(request: Request) -> dict:
}
-@view_config(route_name="user-tile", request_method="GET", permission="profile.view")
+@view_config(
+ route_name="user-tile",
+ request_method="GET",
+ permission="profile.view",
+ http_cache=datetime.timedelta(hours=1),
+)
def user_tile(request: Request) -> Response:
"""Returns a single tile from the user's own overlay maps.