nginx - 为什么 Brotli 命令行最多只允许 9 级?

标签 nginx brotli ngx-brotli

根据主GitHub page对于 Brotli,有 11 个级别的动态压缩。

Sets on-the-fly compression Brotli quality (compression) level. Acceptable values are in the range from 0 to 11.

但是another page项目的显示命令行只支持9级压缩

compression level (0-9); bigger values cause denser, but slower compression

我测试了命令行中的级别 9 是否与级别 11 动态压缩相同。然而事实并非如此。

有什么方法可以使用 11 级压缩的命令行来压缩文件吗?

最佳答案

This issue最好的解释是:

The default quality is mentioned:

  -Z, --best      use best compression level (11) (default)

I think the single dash (-0 to -9) quality parameters are just for convenience, the problem is that by convention a single dash parameter can only by followed by a single character, so -10 or -11 would break the convention.

关于nginx - 为什么 Brotli 命令行最多只允许 9 级?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58566284/

相关文章:

nginx - 在 NGINX 中使用 GZIP 和 BROTLI 共享 MIME 类型列表

node.js - 使用 Node.js 控制对静态内容的访问

python - Flask + Docker 应用程序 - 当我运行 docker run 时容器死亡

node.js - nginx,上游,cors 失败

python - 在 django 应用程序中将 SSL 与 nginx 结合使用

python - 无法解码 Python Web 请求

node.js - 如何为使用 express 构建的 NodeJS 应用程序启用 brotli 压缩?