donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit 605fb2e5395caf41b9d1a1d76b967c11080eac54
parent 2d22172b439ac035bb42dd0d8c48533dfa5933c3
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 22 Jun 2025 13:49:28 +0200

add 'Cache-control: no-store' by default (fixes #9723)

Diffstat:
Msrc/donau/donau-httpd_keys.c | 15++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/donau/donau-httpd_keys.c b/src/donau/donau-httpd_keys.c @@ -172,21 +172,26 @@ setup_general_response_headers (void *cls, struct DH_KeyStateHandle *ksh = cls; char dat[128]; - TALER_MHD_add_global_headers (response); + TALER_MHD_add_global_headers (response, + true); GNUNET_break ( - MHD_YES == MHD_add_response_header (response, MHD_HTTP_HEADER_CONTENT_TYPE, + MHD_YES == MHD_add_response_header (response, + MHD_HTTP_HEADER_CONTENT_TYPE, "application/json")); TALER_MHD_get_date_string (ksh->reload_time.abs_time, dat); GNUNET_break ( - MHD_YES == MHD_add_response_header (response, MHD_HTTP_HEADER_LAST_MODIFIED, + MHD_YES == MHD_add_response_header (response, + MHD_HTTP_HEADER_LAST_MODIFIED, dat)); /* Set cache control headers: our response varies depending on these headers */ GNUNET_break ( - MHD_YES == MHD_add_response_header (response, MHD_HTTP_HEADER_VARY, + MHD_YES == MHD_add_response_header (response, + MHD_HTTP_HEADER_VARY, MHD_HTTP_HEADER_ACCEPT_ENCODING)); /* Information is always public, revalidate after 1 hour */ GNUNET_break ( - MHD_YES == MHD_add_response_header (response, MHD_HTTP_HEADER_CACHE_CONTROL, + MHD_YES == MHD_add_response_header (response, + MHD_HTTP_HEADER_CACHE_CONTROL, "public,max-age=3600")); }