summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrunfink <grunfink@noreply.codeberg.org>2024-04-14 11:05:10 +0000
committergrunfink <grunfink@noreply.codeberg.org>2024-04-14 11:05:10 +0000
commitb150bfe5caed8ce3a07059ef53fce0dfb1c8eda6 (patch)
treeb531d7a6fdb916c3a6c4daaf3f130f9b7273a903
parent1a9bb5fd076a78bd336fc65aac6ee01f468eb4bd (diff)
parentcf5718bf4dedb85d2e1a1495f05bfc7e66124022 (diff)
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
-rw-r--r--httpd.c1
1 files changed, 1 insertions, 0 deletions
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)