mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:40:26 +08:00
默认情况下内容压缩不支持Partial Content
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user