http-unzstd #

Decompresses Zstandard responses (Content-Encoding: zstd) for clients that do not accept zstd. Use it when you store content zstd-compressed to save space and disk reads, but still serve every client.

Source: upstream source

Read more: deep-dive article on deb.myguard.nl

Directives

unzstd #

syntax: unzstd on | off;  ·  default: unzstd off;  ·  context: http, server, location, when

Enables or disables decompression of zstd compressed responses for clients that lack zstd support. When built with ngx_expr_module, this directive can also be configured inside a when block.

unzstd_buffers #

syntax: unzstd_buffers number size;  ·  default: unzstd_buffers 32 4k | 16 8k;  ·  context: http, server, location

Sets the number and size of buffers used to decompress a response. By default, the buffer size is equal to one memory page. This is either 4K or 8K, depending on a platform.

unzstd_dict_file #

syntax: unzstd_dict_file file;\  ·  default: —\  ·  context: http

Specifies the dictionary used to decompress Zstd responses. The sender must use the same dictionary.

unzstd_force #

syntax: unzstd_force on | off;  ·  default: unzstd_force off;  ·  context: http, server, location, when

When enabled, decompresses zstd responses without checking whether the client accepts zstd. Responses without Content-Encoding: zstd are not affected. When built with ngx_expr_module, this directive can also be configured inside a when block.

↑ back to index