Skip to content

Commit

Permalink
Revert "Update WebHandlers.cpp"
Browse files Browse the repository at this point in the history
This reverts commit c3c2263.
  • Loading branch information
LKosoj committed Dec 17, 2024
1 parent c3c2263 commit 12c1737
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions libraries/ESP_Async_WebServer/src/WebHandlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,19 @@ void AsyncStaticWebHandler::handleRequest(AsyncWebServerRequest* request) {
} else {
etag = String(request->_tempFile.size());
}
if (_last_modified.length() && _last_modified == request->header(T_IMS)) {
///////REMOVE THIS!!!!
///////REMOVE THIS!!!!
///////REMOVE THIS!!!!
///////REMOVE THIS!!!!
///////REMOVE THIS!!!!
///////REMOVE THIS!!!!
///////REMOVE THIS!!!!
///////REMOVE THIS!!!!
///////REMOVE THIS!!!!
if (false && _last_modified.length() && _last_modified == request->header(T_IMS)) {
request->_tempFile.close();
request->send(304); // Not modified
} else if (_cache_control.length() && request->hasHeader(T_INM) && request->header(T_INM).equals(etag)) {
} else if (false && _cache_control.length() && request->hasHeader(T_INM) && request->header(T_INM).equals(etag)) {
request->_tempFile.close();
AsyncWebServerResponse* response = new AsyncBasicResponse(304); // Not modified
response->addHeader(T_Cache_Control, _cache_control.c_str());
Expand Down

0 comments on commit 12c1737

Please sign in to comment.