From d5a6ad4f15796d734ceedbea1a30ad1349f0c73f Mon Sep 17 00:00:00 2001 From: Rasmus Date: Sat, 12 Sep 2026 19:15:30 +0200 Subject: [PATCH] fix(web): prevent browser from showing stale artwork for rebound tags --- main/web_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/web_server.c b/main/web_server.c index 514c5ad..2a38128 100644 --- a/main/web_server.c +++ b/main/web_server.c @@ -174,7 +174,7 @@ static const char SPA_PAGE[] = " uids.forEach(function(u){" " var nm=esc(data[u]);" " html+='
';" - " html+='\"art\"';" + " html+='\"art\"';" " html+='
'+nm+'
'+u+'
';" " html+='';" " html+='
';" @@ -516,7 +516,7 @@ static esp_err_t handle_art(httpd_req_t *req) } httpd_resp_set_type(req, "image/jpeg"); - httpd_resp_set_hdr(req, "Cache-Control", "public, max-age=86400"); + httpd_resp_set_hdr(req, "Cache-Control", "no-cache, must-revalidate"); char chunk[1024]; size_t n = 0;