|
@@ -61,7 +61,13 @@ esp_err_t send_file(httpd_req_t *req, std::string filename)
|
|
|
endsWith(filename, ".jpeg") ||
|
|
endsWith(filename, ".jpeg") ||
|
|
|
endsWith(filename, ".ico") ||
|
|
endsWith(filename, ".ico") ||
|
|
|
endsWith(filename, ".png")) {
|
|
endsWith(filename, ".png")) {
|
|
|
- httpd_resp_set_hdr(req, "Cache-Control", "max-age=86400");
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (filename == "/sdcard/html/setup.html") {
|
|
|
|
|
+ httpd_resp_set_hdr(req, "Clear-Site-Data", "\"*\"");
|
|
|
|
|
+ }
|
|
|
|
|
+ else {
|
|
|
|
|
+ httpd_resp_set_hdr(req, "Cache-Control", "max-age=86400");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
set_content_type_from_file(req, filename.c_str());
|
|
set_content_type_from_file(req, filename.c_str());
|