From 6e780183bfc39f0e1ce35cabf25b5d4692559032 Mon Sep 17 00:00:00 2001 From: hanwckf Date: Thu, 21 Aug 2025 00:49:45 +0800 Subject: [PATCH] uboot-2025: mtk_httpd: set nocache header --- uboot-mtk-20250711/net/mtk_httpd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/uboot-mtk-20250711/net/mtk_httpd.c b/uboot-mtk-20250711/net/mtk_httpd.c index ad568c9d5..c161a93bf 100644 --- a/uboot-mtk-20250711/net/mtk_httpd.c +++ b/uboot-mtk-20250711/net/mtk_httpd.c @@ -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;