- N +

NGINX 开启 BR 压缩功能

NGINX 开启 BR 压缩功能原标题:NGINX 开启 BR 压缩功能

导读:

Brotli 是 Google 研发的一种新兴压缩算法,可以加快网页的载入速度。相较于 Gzip 压缩率更高、性能也非常好,再基于 Chrome 的市场支配...

Brotli 是 Google 研发的一种新兴压缩算法,可以加快网页的载入速度。相较于 Gzip 压缩率更高、性能也非常好,再基于 Chrome 的市场支配地位,Brotli 便得到迅速普及。不过要注意,它仅适用于 HTTPS。

yum install git && cd /usr/local/src
git clone https://github.com/google/ngx_brotli.gitpushd ngx_brotli
git submodule update --initpopd
nginx version: nginx/1.16.1built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) built with OpenSSL 1.1.1c  28 May 2019TLS SNI support enabledconfigure arguments: --with-http_ssl_module --with-http_v2_module --with-http_sub_module --with-openssl=../openssl-1.1.1c

作者:队长不在家
舞台上有你,就演好角色; 舞台上没你,就静静地做观众;
微信扫一扫
返回列表
下一篇:

发表评论中国互联网举报中心

快捷回复:

    评论列表 (已有1条评论,共420人参与)参与讨论
    网友昵称:队长不在家
    队长不在家 博主沙发
    2023-11-08 回复
    666