summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorGravatar louis2024-04-13 20:55:02 +0200
committerGravatar louis2024-04-13 20:55:02 +0200
commitcf5718bf4dedb85d2e1a1495f05bfc7e66124022 (patch)
treeb531d7a6fdb916c3a6c4daaf3f130f9b7273a903 /httpd.c
parentFixed bug in form processing. (diff)
downloadpenes-snac2-cf5718bf4dedb85d2e1a1495f05bfc7e66124022.tar.gz
penes-snac2-cf5718bf4dedb85d2e1a1495f05bfc7e66124022.tar.xz
penes-snac2-cf5718bf4dedb85d2e1a1495f05bfc7e66124022.zip
Prevent some browsers from caching servers basic auth request
Diffstat (limited to '')
-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)
388 body, xs_dict_get(srv_config, "host")); 388 body, xs_dict_get(srv_config, "host"));
389 389
390 headers = xs_dict_append(headers, "WWW-Authenticate", www_auth); 390 headers = xs_dict_append(headers, "WWW-Authenticate", www_auth);
391 headers = xs_dict_append(headers, "Cache-Control", "no-cache, must-revalidate, max-age=0");
391 } 392 }
392 393
393 if (ctype == NULL) 394 if (ctype == NULL)