diff --git a/web/public/js/components/common/time-duration-box.js b/web/public/js/components/common/time-duration-box.js index 0ee9f530..4d8943fc 100644 --- a/web/public/js/components/common/time-duration-box.js +++ b/web/public/js/components/common/time-duration-box.js @@ -50,6 +50,7 @@ Vue.component("time-duration-box", { + ` diff --git a/web/public/js/components/server/http-cache-ref-box.js b/web/public/js/components/server/http-cache-ref-box.js index 12cb76b7..8efd1950 100644 --- a/web/public/js/components/server/http-cache-ref-box.js +++ b/web/public/js/components/server/http-cache-ref-box.js @@ -21,7 +21,14 @@ Vue.component("http-cache-ref-box", { conds: null, allowChunkedEncoding: true, isReverse: this.vIsReverse, - methods: [] + methods: [], + expiresTime: { + isPrior: false, + isOn: false, + overwrite: true, + autoCalculate: true, + duration: {count: -1, "unit": "hour"} + } } } if (ref.key == null) { @@ -79,6 +86,9 @@ Vue.component("http-cache-ref-box", { }, changeKey: function (key) { this.$refs.variablesDescriber.update(key) + }, + changeExpiresTime: function (expiresTime) { + this.ref.expiresTime = expiresTime } }, template: `
@@ -107,12 +117,18 @@ Vue.component("http-cache-ref-box", {允许请求的缓存方法,默认支持所有的请求方法。
| 是否启用 | +启用后,将会在响应的Header中添加 |
+
| 覆盖源站设置 | +
+ 选中后,会覆盖源站Header中已有的 |
+
| 自动计算时间 | +根据当前页面中设置的缓存有效期进行计算。 + |
+
| 强制缓存时间 | +
+ |
+