From 687898e8c19f6cefc7c014cfd38cc151d35c1bb8 Mon Sep 17 00:00:00 2001 From: cskarai Date: Thu, 22 Sep 2016 20:34:39 +0200 Subject: [PATCH] Fixed: getMenu cache control --- esp-link/cgi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/esp-link/cgi.c b/esp-link/cgi.c index 0052d0e..76b1539 100644 --- a/esp-link/cgi.c +++ b/esp-link/cgi.c @@ -194,8 +194,7 @@ int ICACHE_FLASH_ATTR cgiMenu(HttpdConnData *connData) { if (connData->conn==NULL) return HTTPD_CGI_DONE; // Connection aborted. Clean up. char buff[1024]; // don't use jsonHeader so the response does get cached - httpdStartResponse(connData, 200); - httpdHeader(connData, "Cache-Control", "max-age=3600, must-revalidate"); + noCacheHeaders(connData, 200); httpdHeader(connData, "Content-Type", "application/json"); httpdEndHeaders(connData); // limit hostname to 12 chars