uboot-2025: mtk_httpd: set nocache header
This commit is contained in:
@@ -282,6 +282,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user