Skip to content

Gzip response bodies #221

Open
Open
@david-crespo

Description

@david-crespo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions