You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by ak...@apache.org on 2026/03/03 01:13:13 UTC
(tooling-trusted-releases) branch jwt-endpoint-headers-788 created (now 98add5d7)
This is an automated email from the ASF dual-hosted git repository.
akm pushed a change to branch jwt-endpoint-headers-788
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
at 98add5d7 Adding Cache-Control params; fixes #788
This branch includes the following new commits:
new 98add5d7 Adding Cache-Control params; fixes #788
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org
(tooling-trusted-releases) 01/01: Adding Cache-Control params; fixes #788
Posted by ak...@apache.org.
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 <ak...@apache.org>
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: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org