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

This commit is contained in:
GoEdgeLab
2024-04-17 13:54:55 +08:00
parent 05f524b915
commit 805da660ee

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,12 +234,26 @@ 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>
<td>
<http-request-conds-box :v-conds="config.conds" @change="changeConds"></http-request-conds-box>
</td>
</td>
</tr>
</tbody>
</table>