The C console application version of makefsdata can store non-SSI files in a compressed format. When served, these files are sent to the web client using Deflate content encoding (the client must support this encoding). Files that do not compress well are automatically stored uncompressed to prevent size growth.
Compression is highly recommended for .html, .js, .css, and .svg files to reduce the overall program size.
To enable compression, use one of the following methods during compilation:
- Using minizip: Define
MAKEFS_SUPPORT_DEFLATE=1. You must manually provide minizip.c in your environment. - Using system zlib: Define
MAKEFS_SUPPORT_DEFLATE_ZLIB to utilize your system's existing zlib library.