From cf5718bf4dedb85d2e1a1495f05bfc7e66124022 Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 13 Apr 2024 20:55:02 +0200 Subject: [PATCH] Prevent some browsers from caching servers basic auth request --- httpd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/httpd.c b/httpd.c index 51ed1a2..e402e61 100644 --- a/httpd.c +++ b/httpd.c @@ -388,6 +388,7 @@ void httpd_connection(FILE *f) body, xs_dict_get(srv_config, "host")); headers = xs_dict_append(headers, "WWW-Authenticate", www_auth); + headers = xs_dict_append(headers, "Cache-Control", "no-cache, must-revalidate, max-age=0"); } if (ctype == NULL)