httpd: set http cache-control to no-store

This commit is contained in:
hanwckf
2023-07-20 18:11:37 +08:00
parent 7924485416
commit eed65b39dc

View File

@@ -276,6 +276,11 @@ u32 http_make_response_header(struct http_response_info *info, char *buff,
p += snprintf(p, buff + size - p, "Content-Length: %d\r\n",
info->content_length);
if (p >= buff + size)
return size;
p += snprintf(p, buff + size - p, "Cache-Control: no-store\r\n");
if (p >= buff + size)
return size;