mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-23 18:00:27 +08:00
缓存设置中增加“支持分片内容”选项,用来支持Chunked内容
This commit is contained in:
@@ -13,7 +13,8 @@ Vue.component("http-cache-ref-box", {
|
|||||||
skipCacheControlValues: ["private", "no-cache", "no-store"],
|
skipCacheControlValues: ["private", "no-cache", "no-store"],
|
||||||
skipSetCookie: true,
|
skipSetCookie: true,
|
||||||
enableRequestCachePragma: false,
|
enableRequestCachePragma: false,
|
||||||
conds: null
|
conds: null,
|
||||||
|
allowChunkedEncoding: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ref.life == null) {
|
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>
|
<size-capacity-box :v-value="ref.maxSize" @change="changeMaxSize"></size-capacity-box>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</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">
|
<tr v-show="moreOptionsVisible">
|
||||||
<td>状态码列表</td>
|
<td>状态码列表</td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -6,5 +6,5 @@
|
|||||||
<table class="ui table definition selectable">
|
<table class="ui table definition selectable">
|
||||||
<tbody is="http-cache-ref-box" :v-cache-ref="cacheRef"></tbody>
|
<tbody is="http-cache-ref-box" :v-cache-ref="cacheRef"></tbody>
|
||||||
</table>
|
</table>
|
||||||
<submit-btn></submit-btn>
|
<submit-btn>确定</submit-btn>
|
||||||
</form>
|
</form>
|
||||||
@@ -7,5 +7,6 @@
|
|||||||
<input type="hidden" name="webId" :value="webId"/>
|
<input type="hidden" name="webId" :value="webId"/>
|
||||||
<http-cache-config-box :v-cache-config="cacheConfig" :v-cache-policy="cachePolicy"></http-cache-config-box>
|
<http-cache-config-box :v-cache-config="cacheConfig" :v-cache-policy="cachePolicy"></http-cache-config-box>
|
||||||
<submit-btn></submit-btn>
|
<submit-btn></submit-btn>
|
||||||
|
<p class="comment">修改条件设置后请记得保存。</p>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@@ -24,5 +24,5 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<submit-btn></submit-btn>
|
<submit-btn>确定</submit-btn>
|
||||||
</form>
|
</form>
|
||||||
@@ -54,5 +54,5 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<submit-btn></submit-btn>
|
<submit-btn>确定</submit-btn>
|
||||||
</form>
|
</form>
|
||||||
@@ -11,6 +11,7 @@
|
|||||||
<input type="hidden" name="webId" :value="webId"/>
|
<input type="hidden" name="webId" :value="webId"/>
|
||||||
<http-cache-config-box :v-cache-config="cacheConfig" :v-cache-policy="cachePolicy" :v-is-location="true"></http-cache-config-box>
|
<http-cache-config-box :v-cache-config="cacheConfig" :v-cache-policy="cachePolicy" :v-is-location="true"></http-cache-config-box>
|
||||||
<submit-btn></submit-btn>
|
<submit-btn></submit-btn>
|
||||||
|
<p class="comment">修改条件设置后请记得保存。</p>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user