[Q] how to serve multiple html parts with gzip #125
Replies: 2 comments 13 replies
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
@softwarecrash Getting a little off topic, some time ago I developed a .exe software (programmed in python) that converts all files of a web project that are inside a folder (html, js, css, img, ...) into a decimal gzip array inside a .h file (file header). This, in addition to making exporting easier, helps with organization in your PlatformIO project. If you think it can help you in any way, here is the link to the repository where you can download it and read the instructions for use: https://github.com/MicSG-dev/Script_export_files_web_gzip_decimal_arduino Example:If the web project contains the files:
The file
Using the Exported FileAfter generating the web_gzip.h file, usage in the Arduino environment is quite straightforward:
|
Beta Was this translation helpful? Give feedback.
-
hello,
i have a html site that is splittet into more parts like head, body, footer and rest in the progmem
now i search for a solution to serve this parts when its gzip compressed, like concatenate the parts to one when it serves
how to realize that?
Beta Was this translation helpful? Give feedback.
All reactions