内容压缩功能增加“例外URL“和“限制URL”设置

This commit is contained in:
刘祥超
2024-04-17 13:54:55 +08:00
parent 18fcc43326
commit b61ffef9e8

View File

@@ -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,6 +234,20 @@ Vue.component("http-compression-config-box", {
<checkbox v-model="config.enablePartialContent"></checkbox>
<p class="comment">支持对分片内容PartialContent的压缩除非客户端有特殊要求一般不需要启用。</p>
</td>
</tr>
<tr>
<td>例外URL</td>
<td>
<url-patterns-box v-model="config.exceptURLPatterns"></url-patterns-box>
<p class="comment">如果填写了例外URL表示这些URL跳过不做处理。</p>
</td>
</tr>
<tr>
<td>限制URL</td>
<td>
<url-patterns-box v-model="config.onlyURLPatterns"></url-patterns-box>
<p class="comment">如果填写了限制URL表示只对这些URL进行压缩处理如果不填则表示支持所有的URL。</p>
</td>
</tr>
<tr>
<td>匹配条件</td>