commit ee2362bc5961a0342dc70676b492b31c28ded216
parent 92ad809324bc8b5fdd083300e765eed8ece95be3
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 3 May 2026 10:04:21 +0200
even cache 302, but Vary on Cookie
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/backend/paivana-httpd_templates.c b/src/backend/paivana-httpd_templates.c
@@ -564,6 +564,14 @@ PAIVANA_HTTPD_search_templates (struct MHD_Connection *connection,
MHD_add_response_header (redirect,
MHD_HTTP_HEADER_LOCATION,
url));
+ GNUNET_break (MHD_YES ==
+ MHD_add_response_header (redirect,
+ MHD_HTTP_HEADER_VARY,
+ "Cookie"));
+ GNUNET_break (MHD_YES ==
+ MHD_add_response_header (redirect,
+ MHD_HTTP_HEADER_CACHE_CONTROL,
+ "public, max-age=60"));
GNUNET_free (url);
ret = MHD_queue_response (connection,
MHD_HTTP_FOUND,