fix: set default, don't override cache headers (#31306)

Oof.
This commit is contained in:
Ankush Menat 2025-02-19 11:28:34 +05:30 committed by GitHub
parent 91eee4fdf9
commit e16f3b1c84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -242,7 +242,7 @@ def process_response(response: Response):
return
# Default for all requests is no-cache unless explicitly opted-in by endpoint
response.headers.update(NO_CACHE_HEADERS)
response.headers.setdefault("Cache-Control", NO_CACHE_HEADERS["Cache-Control"])
# rate limiter headers
if hasattr(frappe.local, "rate_limiter"):