Skip to content

Commit

Permalink
Merge pull request #181 from jeremypoulter/ie11_fix
Browse files Browse the repository at this point in the history
Added cache headers to stop IE caching the status
  • Loading branch information
glynhudson authored May 16, 2018
2 parents 021f1bd + e94b5c2 commit e38fb4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/web_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e38fb4f

Please sign in to comment.