Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix/handle-no-mapped-id-and-cach…
Browse files Browse the repository at this point in the history
…ing' into fix/handle-no-mapped-id-and-caching
  • Loading branch information
SageTendo committed Feb 1, 2025
2 parents d203a17 + ab5cdd0 commit 413a8f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/routes/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@ def respond_with(data, ttl: int = 0) -> Response:
if ttl > 0:
resp.cache_control.public = True
resp.cache_control.max_age = ttl
resp.cache_control.s_maxage = ttl
resp.vary = "Accept-Encoding"

return resp

0 comments on commit 413a8f1

Please sign in to comment.