默认支持206 Partial Content

This commit is contained in:
刘祥超
2022-09-24 14:40:34 +08:00
parent 7daefc4384
commit 12e352964c

View File

@@ -29,7 +29,7 @@ Vue.component("http-cache-ref-box", {
conds: null, // 复杂条件 conds: null, // 复杂条件
simpleCond: null, // 简单条件 simpleCond: null, // 简单条件
allowChunkedEncoding: true, allowChunkedEncoding: true,
allowPartialContent: false, allowPartialContent: true,
enableIfNoneMatch: false, enableIfNoneMatch: false,
enableIfModifiedSince: false, enableIfModifiedSince: false,
isReverse: this.vIsReverse, isReverse: this.vIsReverse,
@@ -241,7 +241,7 @@ Vue.component("http-cache-ref-box", {
<td>支持缓存区间内容</td> <td>支持缓存区间内容</td>
<td> <td>
<checkbox name="allowPartialContent" value="1" v-model="ref.allowPartialContent"></checkbox> <checkbox name="allowPartialContent" value="1" v-model="ref.allowPartialContent"></checkbox>
<p class="comment">选中后,支持缓存源站返回的某个区间的内容,该内容通过<code-label>206 Partial Content</code-label>状态码返回。此功能目前为<code-label>试验性质</code-label>。</p> <p class="comment">选中后,支持缓存源站返回的某个区间的内容,该内容通过<code-label>206 Partial Content</code-label>状态码返回。</p>
</td> </td>
</tr> </tr>
<tr v-show="moreOptionsVisible && !vIsReverse"> <tr v-show="moreOptionsVisible && !vIsReverse">