From 9b0ae002a9da21efb2caf11ab92fe50496d4e7db Mon Sep 17 00:00:00 2001 From: luc Date: Tue, 17 Nov 2015 19:43:17 +0800 Subject: [PATCH] Fix bug with IE11 add cache control to none, and do not display overflow, in addition it need to adjust security settings to allow to get updates and send commands --- esp8266/data/printer.tpl | 2 +- esp8266/webinterface.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/esp8266/data/printer.tpl b/esp8266/data/printer.tpl index b61b32b7..3b28be8b 100644 --- a/esp8266/data/printer.tpl +++ b/esp8266/data/printer.tpl @@ -13,7 +13,7 @@ $INCLUDE[header.inc]$ diff --git a/esp8266/webinterface.cpp b/esp8266/webinterface.cpp index b5f31018..06be7568 100644 --- a/esp8266/webinterface.cpp +++ b/esp8266/webinterface.cpp @@ -2561,6 +2561,7 @@ void handle_web_interface_status() } buffer2send+="]"; buffer2send+="}"; + web_interface->WebServer.sendHeader("Cache-Control", "no-cache"); web_interface->WebServer.send(200, "application/json",buffer2send); } @@ -2651,6 +2652,7 @@ void handleUpdate(){ jsonfile+=intTostr(web_interface->_upload_status); jsonfile+="\"}"; //send status + web_interface->WebServer.sendHeader("Cache-Control", "no-cache"); web_interface->WebServer.send(200, "application/json", jsonfile); //if success restart if (web_interface->_upload_status==UPLOAD_STATUS_SUCCESSFUL)web_interface->restartmodule=true; @@ -2705,6 +2707,7 @@ void handleFileList() { jsonfile+="\""; jsonfile+="}"; path = ""; + web_interface->WebServer.sendHeader("Cache-Control", "no-cache"); web_interface->WebServer.send(200, "application/json", jsonfile); } @@ -2722,6 +2725,7 @@ void handleSDFileList() { jsonfile+="\"}"; } jsonfile+="]"; + web_interface->WebServer.sendHeader("Cache-Control", "no-cache"); web_interface->WebServer.send(200, "application/json", jsonfile); }