mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-11 01:50:27 +08:00
缓存配置增加Age Header配置
This commit is contained in:
@@ -2968,6 +2968,7 @@ Vue.component("http-cache-config-box", {
|
|||||||
isPrior: false,
|
isPrior: false,
|
||||||
isOn: false,
|
isOn: false,
|
||||||
addStatusHeader: true,
|
addStatusHeader: true,
|
||||||
|
addAgeHeader: false,
|
||||||
cacheRefs: [],
|
cacheRefs: [],
|
||||||
purgeIsOn: false,
|
purgeIsOn: false,
|
||||||
purgeKey: ""
|
purgeKey: ""
|
||||||
@@ -3032,10 +3033,17 @@ Vue.component("http-cache-config-box", {
|
|||||||
</tbody>
|
</tbody>
|
||||||
<tbody v-show="isOn() && moreOptionsVisible">
|
<tbody v-show="isOn() && moreOptionsVisible">
|
||||||
<tr>
|
<tr>
|
||||||
<td>自动添加X-Cache Header</td>
|
<td>添加X-Cache Header</td>
|
||||||
<td>
|
<td>
|
||||||
<checkbox v-model="cacheConfig.addStatusHeader"></checkbox>
|
<checkbox v-model="cacheConfig.addStatusHeader"></checkbox>
|
||||||
<p class="comment">选中后自动在响应Header中增加<code-label>X-Cache: BYPASS|MISS|HIT</code-label>。</p>
|
<p class="comment">选中后自动在响应Header中增加<code-label>X-Cache: BYPASS|MISS|HIT|PURGE</code-label>。</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>添加Age Header</td>
|
||||||
|
<td>
|
||||||
|
<checkbox v-model="cacheConfig.addAgeHeader"></checkbox>
|
||||||
|
<p class="comment">选中后自动在响应Header中增加<code-label>Age: [有效时间秒数]</code-label>。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -6118,7 +6126,8 @@ Vue.component("http-access-log-config-box", {
|
|||||||
status4: true,
|
status4: true,
|
||||||
status5: true,
|
status5: true,
|
||||||
|
|
||||||
firewallOnly: false
|
firewallOnly: false,
|
||||||
|
enableClientClosed: false
|
||||||
}
|
}
|
||||||
if (this.vAccessLogConfig != null) {
|
if (this.vAccessLogConfig != null) {
|
||||||
accessLog = this.vAccessLogConfig
|
accessLog = this.vAccessLogConfig
|
||||||
@@ -6196,6 +6205,16 @@ Vue.component("http-access-log-config-box", {
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>记录客户端中断日志</td>
|
||||||
|
<td>
|
||||||
|
<div class="ui checkbox">
|
||||||
|
<input type="checkbox" v-model="accessLog.enableClientClosed"/>
|
||||||
|
<label></label>
|
||||||
|
</div>
|
||||||
|
<p class="comment">以<code-label>499</code-label>的状态码记录客户端主动中断日志。</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ Vue.component("http-cache-config-box", {
|
|||||||
isPrior: false,
|
isPrior: false,
|
||||||
isOn: false,
|
isOn: false,
|
||||||
addStatusHeader: true,
|
addStatusHeader: true,
|
||||||
|
addAgeHeader: false,
|
||||||
cacheRefs: [],
|
cacheRefs: [],
|
||||||
purgeIsOn: false,
|
purgeIsOn: false,
|
||||||
purgeKey: ""
|
purgeKey: ""
|
||||||
@@ -71,10 +72,17 @@ Vue.component("http-cache-config-box", {
|
|||||||
</tbody>
|
</tbody>
|
||||||
<tbody v-show="isOn() && moreOptionsVisible">
|
<tbody v-show="isOn() && moreOptionsVisible">
|
||||||
<tr>
|
<tr>
|
||||||
<td>自动添加X-Cache Header</td>
|
<td>添加X-Cache Header</td>
|
||||||
<td>
|
<td>
|
||||||
<checkbox v-model="cacheConfig.addStatusHeader"></checkbox>
|
<checkbox v-model="cacheConfig.addStatusHeader"></checkbox>
|
||||||
<p class="comment">选中后自动在响应Header中增加<code-label>X-Cache: BYPASS|MISS|HIT</code-label>。</p>
|
<p class="comment">选中后自动在响应Header中增加<code-label>X-Cache: BYPASS|MISS|HIT|PURGE</code-label>。</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>添加Age Header</td>
|
||||||
|
<td>
|
||||||
|
<checkbox v-model="cacheConfig.addAgeHeader"></checkbox>
|
||||||
|
<p class="comment">选中后自动在响应Header中增加<code-label>Age: [有效时间秒数]</code-label>。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user