Note that, even without the gzip directive, Caddy will serve .gz (gzip) or .br (brotli) compressed files if they already exist on disk and the client supports that encoding.
- extensions… is a space-separated list of file extensions to compress. Supports wildcard to match all extensions.
- compression_level is a number from 1 (best speed) to 9 (best compression). Default is 6.
- min_bytes is the minimum number of bytes in a response needed before compression will happen. Default is no minimum length.
Enable gzip compression:
Enable very fast but minimal compression except in the /images and /videos folders (note, however, that images and videos will not be gzipped anyway):
to use Caddy with your business and for basic email support, along with other benefits!