This is an automated email from the ASF dual-hosted git repository.

akm pushed a commit to branch jwt-endpoint-headers-788
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git

commit 98add5d7f377b97178e22d669ed0beb4eebc1ed8
Author: Andrew K. Musselman <[email protected]>
AuthorDate: Mon Mar 2 17:12:40 2026 -0800

    Adding Cache-Control params; fixes #788
---
 atr/post/tokens.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/atr/post/tokens.py b/atr/post/tokens.py
index 157b8023..62649e2e 100644
--- a/atr/post/tokens.py
+++ b/atr/post/tokens.py
@@ -42,7 +42,9 @@ async def jwt_post(session: web.Committer, _tokens_jwt: 
Literal["tokens/jwt"], _
     URL: /tokens/jwt
     """
     jwt_token = jwtoken.issue(session.uid)
-    return web.TextResponse(jwt_token)
+    response = web.TextResponse(jwt_token)
+    response.headers["Cache-Control"] = "no-store, no-cache"
+    return response
 
 
 @post.typed


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to