http-unbrotli #
Decompresses Brotli responses (Content-Encoding: br) for clients that do not accept Brotli. Use it when you store content Brotli-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
unbrotli #
syntax: unbrotli on | off; · default: unbrotli off; · context: http, server, location, when
Enables or disables decompression of brotli compressed responses for clients that lack brotli support. When built with ngx_expr_module, this directive can also be configured inside a when block.
unbrotli_buffers #
syntax: unbrotli_buffers number size; · default: unbrotli_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.
unbrotli_force #
syntax: unbrotli_force on | off; · default: unbrotli_force off; · context: http, server, location, when
When enabled, decompresses brotli responses without checking whether the client accepts brotli. Responses without Content-Encoding: br are not affected. When built with ngx_expr_module, this directive can also be configured inside a when block.