diff --git a/wled00/wled_server.cpp b/wled00/wled_server.cpp index 740a0ddebd..ae50226b6c 100644 --- a/wled00/wled_server.cpp +++ b/wled00/wled_server.cpp @@ -539,7 +539,12 @@ void serveSettingsJS(AsyncWebServerRequest* request) strcat_P(buf,PSTR("function GetV(){var d=document;")); getSettingsJS(subPage, buf+strlen(buf)); // this may overflow by 35bytes!!! strcat_P(buf,PSTR("}")); - request->send(200, "application/javascript", buf); + + AsyncWebServerResponse *response; + response = request->beginResponse(200, "application/javascript", buf); + response->addHeader(F("Cache-Control"),"no-store"); + response->addHeader(F("Expires"),"0"); + request->send(response); }