If it’s just about GZipping, you may find it better to use the filesystem approach for the ESP32: You can just place the files verbatim in data/, build a filesystem and upload that. Then the [Question] ESP32: Compress files in Data to GZip before upload possible to SPIFFS? - #15 by szerintedmi can auto GZIP compress the files before upload, so the ESP32’s webserver serves compressed files.