Substantially reduce response sizes by gzipping response body and adding content-encoding: gzip to headers. Probably simplest to make this configurable server-wide. This issue is inspired by me imagining a multi-MB response containing serial console contents.
Potential extra features
- Configurable minimum size below which we don't bother compressing (see below, a few KB seems like a reasonable threshold)
- Respect
accept-encoding: identity request header by not compressing even if compression feature is turned on server-wide
Substantially reduce response sizes by gzipping response body and adding
content-encoding: gzipto headers. Probably simplest to make this configurable server-wide. This issue is inspired by me imagining a multi-MB response containing serial console contents.Potential extra features
accept-encoding: identityrequest header by not compressing even if compression feature is turned on server-wide