diff options
author | louis <louis@emacs.ch> | 2024-04-13 20:55:02 +0200 |
---|---|---|
committer | louis <louis@emacs.ch> | 2024-04-13 20:55:02 +0200 |
commit | cf5718bf4dedb85d2e1a1495f05bfc7e66124022 (patch) | |
tree | b531d7a6fdb916c3a6c4daaf3f130f9b7273a903 /httpd.c | |
parent | 1a9bb5fd076a78bd336fc65aac6ee01f468eb4bd (diff) |
Prevent some browsers from caching servers basic auth request
Diffstat (limited to 'httpd.c')
-rw-r--r-- | httpd.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |