diff --git a/src/helpers/web/WebPanelServer.cpp b/src/helpers/web/WebPanelServer.cpp index 130c3031..26d5bd19 100644 --- a/src/helpers/web/WebPanelServer.cpp +++ b/src/helpers/web/WebPanelServer.cpp @@ -2617,6 +2617,7 @@ bool WebPanelServer::start() { redirect_config.backlog_conn = 0; redirect_config.recv_wait_timeout = 10; redirect_config.send_wait_timeout = 10; + redirect_config.httpd.lru_purge_enable = true; redirect_config.stack_size = kWebServerStackSize; redirect_config.task_priority = tskIDLE_PRIORITY + 2; redirect_config.core_id = 0; @@ -2697,6 +2698,7 @@ esp_err_t WebPanelServer::handleHttpRedirect(httpd_req_t* req) { httpd_resp_set_status(req, "302 Found"); httpd_resp_set_hdr(req, "Location", location); httpd_resp_set_hdr(req, "Cache-Control", "no-store"); + httpd_resp_set_hdr(req, "Connection", "close"); return httpd_resp_send(req, "", 0); }