commit b150bfe

grunfink  ·  2024-04-14 11:05:10 +0000 UTC
parents 1a9bb5f, cf5718b
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
+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)