commit cf5718b

louis  ·  2024-04-13 18:55:02 +0000 UTC
parent 1a9bb5f
Prevent some browsers from caching servers basic auth request
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)