Skip to content

Commit

Permalink
Add cacge ctrl header
Browse files Browse the repository at this point in the history
  • Loading branch information
cziter15 committed Jun 10, 2024
1 parent 827fa7d commit aa5c92e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ksf/comp/ksDevicePortal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ namespace ksf::comps
return;
}

webServer->sendHeader(PSTR("Cache-Control"), PSTR("private"));
webServer->sendHeader(PSTR("Content-Encoding"), PSTR("gzip"));
webServer->sendHeader(PSTR("ETag"), fileMD5);
webServer->send_P(200, PROGMEM_TEXT_HTML, (const char*)DEVICE_FRONTEND_HTML, DEVICE_FRONTEND_HTML_SIZE);
Expand Down

0 comments on commit aa5c92e

Please sign in to comment.