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

This commit is contained in:
刘祥超
2022-12-30 11:43:47 +08:00
parent cc752e8d80
commit 8301d3669b

View File

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