From 5aedaf987162072ce4ce1a68d80b89f151520ed5 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 17 May 2023 23:44:43 +0200 Subject: add cache header to user tiles --- fietsboek/views/profile.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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. -- cgit v1.2.3