snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit cf5718bf4dedb85d2e1a1495f05bfc7e66124022
parent 1a9bb5fd076a78bd336fc65aac6ee01f468eb4bd
Author: louis <louis@emacs.ch>
Date:   Sat, 13 Apr 2024 20:55:02 +0200

Prevent some browsers from caching servers basic auth request

Diffstat:
Mhttpd.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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)