We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 787c79e commit d7a5888Copy full SHA for d7a5888
1 file changed
profiles/__init__.py
@@ -78,6 +78,14 @@
78
# pylint: enable=wrong-import-position
79
80
81
+@app.after_request
82
+def set_cache_headers(response):
83
+ if "Cache-Control" not in response.headers:
84
+ response.headers["Cache-Control"] = "no-store"
85
+ response.headers["Vary"] = "Cookie"
86
+ return response
87
+
88
89
@app.route("/", methods=["GET"])
90
@auth.oidc_auth("default")
91
@before_request
0 commit comments