From e06605cbf2153f518baa427e18cd8223eb46e5e5 Mon Sep 17 00:00:00 2001 From: bing Date: Wed, 9 Feb 2022 21:05:22 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=B7=BB=E5=8A=A0nginx=20br=E5=8E=8B?= =?UTF-8?q?=E7=BC=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/brotli/readme.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/nginx/brotli/readme.md b/nginx/brotli/readme.md index 6a517ef..308d646 100644 --- a/nginx/brotli/readme.md +++ b/nginx/brotli/readme.md @@ -51,4 +51,14 @@ load_module modules/extend/ngx_http_brotli_static_module.so; ``` -配置必须位于 `event {}` 与 `http {}`之前 \ No newline at end of file +配置必须位于 `event {}` 与 `http {}`之前 + +开启br压缩 + +```conf + brotli on; + brotli_comp_level 6; + brotli_buffers 16 8k; + brotli_min_length 20; + brotli_types *; #*表示压缩所有资源,也可以指定资源类型 +``` \ No newline at end of file