another try to disable http cache

This commit is contained in:
Patrick Haßel 2023-01-03 15:31:02 +01:00
parent a3038b255b
commit 82445efda4

View File

@ -45,9 +45,9 @@ void server_loop() {
void web_index() { void web_index() {
server.setContentLength(CONTENT_LENGTH_UNKNOWN); server.setContentLength(CONTENT_LENGTH_UNKNOWN);
server.send(200, "text/html", ""); server.send(200, "text/html", "");
server.sendContent(R"(<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />)"); server.sendContent(R"(<meta http-equiv="Cache-Control" content="store, no-cache, must-revalidate, post-check=0, pre-check=0" />)");
server.sendContent(R"(<meta http-equiv="Pragma" content="no-cache" />)"); server.sendContent(R"(<meta http-equiv="Pragma" content="no-cache" />)");
server.sendContent(R"(<meta http-equiv="Expires" content="0" />)"); server.sendContent(R"(<meta http-equiv="Expires" content="Sun, 1 Jan 1999 00:00:00 GMT" />)");
server.sendContent(R"(<a href="/mode?mode=0">NONE</a><br>)"); server.sendContent(R"(<a href="/mode?mode=0">NONE</a><br>)");
server.sendContent(R"(<a href="/mode?mode=1">BORDER</a><br>)"); server.sendContent(R"(<a href="/mode?mode=1">BORDER</a><br>)");