Add cache control to make sure new pages are served on session timeout

This commit is contained in:
logicog
2025-12-01 18:26:46 +01:00
parent 4e4e6a55ba
commit 0722b147fe
2 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -579,7 +579,7 @@ void httpd_appcall(void)
slen = strtox(outbuf, "HTTP/1.1 200 OK\r\nContent-Type: ");
slen += strtox(outbuf + slen, mime_strings[f_data[entry].mime]);
slen += strtox(outbuf + slen, "\r\nCache-Control: max-age=2592000\r\n\r\n");
slen += strtox(outbuf + slen, "\r\nCache-Control: max-age=60, must-revalidate\r\n\r\n");
len_left = f_data[entry].len;
if (len_left > (TCP_OUTBUF_SIZE - slen)) {
cont_len = len_left - (TCP_OUTBUF_SIZE - slen);