缓存设置中增加“支持分片内容”选项,用来支持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"], 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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -24,5 +24,5 @@
</td> </td>
</tr> </tr>
</table> </table>
<submit-btn></submit-btn> <submit-btn>确定</submit-btn>
</form> </form>

View File

@@ -54,5 +54,5 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<submit-btn></submit-btn> <submit-btn>确定</submit-btn>
</form> </form>

View File

@@ -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>