From 8d516c7f95527ce29384e3e2d3e2f862cb909a2a Mon Sep 17 00:00:00 2001 From: Yurii Date: Thu, 9 Jan 2025 19:35:56 +0300 Subject: [PATCH] refactor: optimized work with etag --- lib/WebServerHandlers/StaticPage.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/WebServerHandlers/StaticPage.h b/lib/WebServerHandlers/StaticPage.h index 14b643e..51ca630 100644 --- a/lib/WebServerHandlers/StaticPage.h +++ b/lib/WebServerHandlers/StaticPage.h @@ -1,8 +1,5 @@ #include #include -#if defined(ARDUINO_ARCH_ESP32) - #include -#endif using namespace mime; @@ -54,13 +51,6 @@ public: if (this->eTag.isEmpty()) { if (server._eTagFunction) { this->eTag = (server._eTagFunction)(*this->fs, this->path); - - } else { - #if defined(ARDUINO_ARCH_ESP8266) - this->eTag = esp8266webserver::calcETag(*this->fs, this->path); - #elif defined(ARDUINO_ARCH_ESP32) - this->eTag = StaticRequestHandler::calcETag(*this->fs, this->path); - #endif } }