mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
Prevent some browsers from caching servers basic auth request
This commit is contained in:
parent
1a9bb5fd07
commit
cf5718bf4d
1 changed files with 1 additions and 0 deletions
1
httpd.c
1
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)
|
||||
|
|
Loading…
Reference in a new issue