Skip to content

Commit 95fc660

Browse files
committed
Cache per Content-Type
1 parent 5bc66ef commit 95fc660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pyff/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def request_handler(request: Request) -> Response:
140140
:param request: the HTTP request object
141141
:return: the data to send to the client
142142
"""
143-
key = request.path_qs
143+
key = f"{request.path_qs}_{request.accept}"
144144
r = None
145145
try:
146146
r = request.registry.cache[key]

0 commit comments

Comments
 (0)