缓存设置中增加“支持分片内容”选项,用来支持Chunked内容

This commit is contained in:
刘祥超
2021-04-18 22:16:46 +08:00
parent a7453a4baa
commit e4015282a5
6 changed files with 14 additions and 4 deletions

View File

@@ -13,7 +13,8 @@ Vue.component("http-cache-ref-box", {
skipCacheControlValues: ["private", "no-cache", "no-store"],
skipSetCookie: true,
enableRequestCachePragma: false,
conds: null
conds: null,
allowChunkedEncoding: true
}
}
if (ref.life == null) {
@@ -72,6 +73,13 @@ Vue.component("http-cache-ref-box", {
<size-capacity-box :v-value="ref.maxSize" @change="changeMaxSize"></size-capacity-box>
</td>
</tr>
<tr v-show="moreOptionsVisible">
<td>支持分片内容</td>
<td>
<checkbox name="allowChunkedEncoding" value="1" v-model="ref.allowChunkedEncoding"></checkbox>
<p class="comment">选中后Gzip和Chunked内容可以直接缓存无需检查内容长度。</p>
</td>
</tr>
<tr v-show="moreOptionsVisible">
<td>状态码列表</td>
<td>