From e94b5c2aa7aa1292344ff43379359fb898e6b323 Mon Sep 17 00:00:00 2001 From: Jeremy Poulter Date: Sat, 12 May 2018 16:00:29 +0100 Subject: [PATCH] Added cache headers to stop IE caching the status --- src/web_server.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/web_server.cpp b/src/web_server.cpp index 4090798..2292d01 100644 --- a/src/web_server.cpp +++ b/src/web_server.cpp @@ -110,6 +110,8 @@ bool requestPreProcess(AsyncWebServerRequest *request, AsyncResponseStream *&res response->addHeader(F("Access-Control-Allow-Origin"), F("*")); } + response->addHeader(F("Cache-Control"), F("no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0")); + return true; }