From b61ffef9e8b485da347d3a0f563605ff7cf37e3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Wed, 17 Apr 2024 13:54:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AE=B9=E5=8E=8B=E7=BC=A9=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=A2=9E=E5=8A=A0=E2=80=9C=E4=BE=8B=E5=A4=96URL?= =?UTF-8?q?=E2=80=9C=E5=92=8C=E2=80=9C=E9=99=90=E5=88=B6URL=E2=80=9D?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/http-compression-config-box.js | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/web/public/js/components/server/http-compression-config-box.js b/web/public/js/components/server/http-compression-config-box.js index da127979..ed00550c 100644 --- a/web/public/js/components/server/http-compression-config-box.js +++ b/web/public/js/components/server/http-compression-config-box.js @@ -15,7 +15,7 @@ Vue.component("http-compression-config-box", { isOn: false, useDefaultTypes: true, types: ["brotli", "gzip", "zstd", "deflate"], - level: 3, + level: 0, decompressData: false, gzipRef: null, deflateRef: null, @@ -26,7 +26,9 @@ Vue.component("http-compression-config-box", { extensions: [".js", ".json", ".html", ".htm", ".xml", ".css", ".woff2", ".txt"], exceptExtensions: [".apk", ".ipa"], conds: null, - enablePartialContent: false + enablePartialContent: false, + onlyURLPatterns: [], + exceptURLPatterns: [] } } @@ -232,12 +234,26 @@ Vue.component("http-compression-config-box", {

支持对分片内容(PartialContent)的压缩;除非客户端有特殊要求,一般不需要启用。

+ + + 例外URL + + +

如果填写了例外URL,表示这些URL跳过不做处理。

+ + + + 限制URL + + +

如果填写了限制URL,表示只对这些URL进行压缩处理;如果不填则表示支持所有的URL。

+ 匹配条件 - +