-
Notifications
You must be signed in to change notification settings - Fork 31
Description
May I ask if the compression priority of zstd and brotli can be specified when nginx adds third-party modules zstd and brotli? Is it determined based on the module order in ngx_module. c. But I tried to modify the order of add_madule during compilation, but the order in ngx_module. c always remains the same:
"ngx_http_brotli_filter_module",
"ngx_http_zstd_filter_module",
When the header of the request is "Accept-Encoding:br,zstd", The compression priority displayed is zstd>br
However, the order of static modules will change according to the order of add_module, for example - add-module=.../ngx_http_zstd_module - add-module=.../ngx_brotli, in ngx_module. c:
"ngx_http_zstd_static_module",
"ngx_http_brotli_static_module",
--add-module=.../ngx_brotli --add-module=.../ngx_http_zstd_module:
"ngx_http_brotli_static_module",
"ngx_http_zstd_static_module",
But when the header of the request is “Accept Encoding: br, zstd”, the priority of returning static files is always br, regardless of the order of static_module in ngx_module