commit b150bfe
Merge pull request 'Prevent some browsers from caching servers basic auth request' (#159) from louis77/snac2:master into master Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/159
1 files changed,
+1,
-0
M
httpd.c
M
httpd.c
+1,
-0
1@@ -388,6 +388,7 @@ void httpd_connection(FILE *f)
2 body, xs_dict_get(srv_config, "host"));
3
4 headers = xs_dict_append(headers, "WWW-Authenticate", www_auth);
5+ headers = xs_dict_append(headers, "Cache-Control", "no-cache, must-revalidate, max-age=0");
6 }
7
8 if (ctype == NULL)