H2O

the optimized HTTP/1.x, HTTP/2 server
Powered by Oktavia

Configure > Gzip Directives

This document describes the configuration directives of the gzip handler.

"gzip"

Description:

Enables on-the-fly compression of HTTP response.

When set to ON, the handler compresses the content sent to the client using the GZIP content-encoding if all of the following conditions are met:

  • client has announced its capability of decoding gzipped content via Accept-Encoding header
  • content (by checking the content-type) is known to be compressible

When set to OFF, the feature is not used.

Example. Enabling on-the-fly gzip compression
gzip: ON
Level:
global, host, path, extension
Default:
gzip: OFF
See also:
file.send-gzip, file.mime.addtypes