默认情况下内容压缩不支持Partial Content

This commit is contained in:
GoEdgeLab
2022-12-30 11:43:47 +08:00
parent a5ca5b726e
commit 2d97044cd0

View File

@@ -24,7 +24,8 @@ Vue.component("http-compression-config-box", {
maxLength: {count: 0, "unit": "kb"},
mimeTypes: ["text/*", "application/javascript", "application/json", "application/atom+xml", "application/rss+xml", "application/xhtml+xml", "font/*", "image/svg+xml"],
extensions: [".js", ".json", ".html", ".htm", ".xml", ".css", ".woff2", ".txt"],
conds: null
conds: null,
enablePartialContent: false
}
}
@@ -231,6 +232,13 @@ Vue.component("http-compression-config-box", {
<p class="comment">0表示不限制内容长度从文件尺寸或Content-Length中获取。</p>
</td>
</tr>
<tr>
<td>支持Partial<br/>Content</td>
<td>
<checkbox v-model="config.enablePartialContent"></checkbox>
<p class="comment">支持对分区内容PartialContent的压缩除非客户端有特殊要求一般不需要启用。</p>
</td>
</tr>
<tr>
<td>匹配条件</td>
<td>