commit 95059f792b7df0160876ad3ab256e966b9cf3395
parent a3417831e41ce553c61a4c8bc1f40276c710b01b
Author: Florian Dold <florian@dold.me>
Date: Mon, 26 May 2025 14:01:01 +0200
do not return cache headers for /kyc
Diffstat:
1 file changed, 0 insertions(+), 33 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c b/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c
@@ -31,25 +31,6 @@
#include <regex.h>
/**
- * We do not re-check an acceptable KYC status for
- * a month, as usually a KYC never expires.
- */
-#define STALE_KYC_TIMEOUT GNUNET_TIME_UNIT_MONTHS
-
-/**
- * How long should clients cache a KYC failure response?
- */
-#define EXPIRATION_KYC_FAILURE GNUNET_TIME_relative_multiply ( \
- GNUNET_TIME_UNIT_MINUTES, 5)
-
-/**
- * How long should clients cache a KYC success response?
- */
-#define EXPIRATION_KYC_SUCCESS GNUNET_TIME_relative_multiply ( \
- GNUNET_TIME_UNIT_HOURS, 1)
-
-
-/**
* Information we keep per /kyc request.
*/
struct KycContext;
@@ -363,24 +344,10 @@ kyc_context_cleanup (void *cls)
static void
resume_kyc_with_response (struct KycContext *kc)
{
- char dat[128];
-
kc->response_code = MHD_HTTP_OK;
kc->response = TALER_MHD_MAKE_JSON_PACK (
GNUNET_JSON_pack_array_incref ("kyc_data",
kc->kycs_data));
- /* KYC failed, cache briefly */
- TALER_MHD_get_date_string (GNUNET_TIME_relative_to_absolute (
- EXPIRATION_KYC_FAILURE),
- dat);
- GNUNET_break (MHD_YES ==
- MHD_add_response_header (kc->response,
- MHD_HTTP_HEADER_EXPIRES,
- dat));
- GNUNET_break (MHD_YES ==
- MHD_add_response_header (kc->response,
- MHD_HTTP_HEADER_CACHE_CONTROL,
- "max-age=300"));
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Resuming /kyc handling as exchange interaction is done (%u)\n",
MHD_HTTP_OK);