From adf250efa183e716e5472a1f9d67f65f61ca62c5 Mon Sep 17 00:00:00 2001 From: Cole Stowell Date: Wed, 8 Apr 2026 23:54:57 -0400 Subject: [PATCH] fix: people getting logged in as each other --- profiles/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/profiles/__init__.py b/profiles/__init__.py index 90f43de..04cfd44 100644 --- a/profiles/__init__.py +++ b/profiles/__init__.py @@ -78,6 +78,14 @@ # pylint: enable=wrong-import-position +@app.after_request +def set_cache_headers(response): + if "Cache-Control" not in response.headers: + response.headers["Cache-Control"] = "no-store" + response.headers["Vary"] = "Cookie" + return response + + @app.route("/", methods=["GET"]) @auth.oidc_auth("default") @before_request