From aa5c92e0f682c1e2b65f231fc85673d0d9bc5e57 Mon Sep 17 00:00:00 2001 From: cziter15 Date: Mon, 10 Jun 2024 22:18:07 +0200 Subject: [PATCH] Add cacge ctrl header --- src/ksf/comp/ksDevicePortal.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ksf/comp/ksDevicePortal.cpp b/src/ksf/comp/ksDevicePortal.cpp index 409df40..9ff8e3a 100644 --- a/src/ksf/comp/ksDevicePortal.cpp +++ b/src/ksf/comp/ksDevicePortal.cpp @@ -553,6 +553,7 @@ namespace ksf::comps return; } + webServer->sendHeader(PSTR("Cache-Control"), PSTR("private")); webServer->sendHeader(PSTR("Content-Encoding"), PSTR("gzip")); webServer->sendHeader(PSTR("ETag"), fileMD5); webServer->send_P(200, PROGMEM_TEXT_HTML, (const char*)DEVICE_FRONTEND_HTML, DEVICE_FRONTEND_HTML_SIZE);