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 4cfbf09e..013594a4 100644 --- a/web/public/js/components/server/http-cache-ref-box.js +++ b/web/public/js/components/server/http-cache-ref-box.js @@ -11,6 +11,7 @@ Vue.component("http-cache-ref-box", { life: {count: 2, unit: "hour"}, status: [200], maxSize: {count: 32, unit: "mb"}, + minSize: {count: 0, unit: "kb"}, skipCacheControlValues: ["private", "no-cache", "no-store"], skipSetCookie: true, enableRequestCachePragma: false, @@ -25,6 +26,9 @@ Vue.component("http-cache-ref-box", { if (ref.maxSize == null) { ref.maxSize = {count: 32, unit: "mb"} } + if (ref.minSize == null) { + ref.minSize = {count: 0, unit: "kb"} + } return { ref: ref, moreOptionsVisible: false @@ -40,6 +44,9 @@ Vue.component("http-cache-ref-box", { changeMaxSize: function (v) { this.ref.maxSize = v }, + changeMinSize: function (v) { + this.ref.minSize = v + }, changeConds: function (v) { this.ref.conds = v }, @@ -81,9 +88,17 @@ Vue.component("http-cache-ref-box", {
内容尺寸如果高于此值则不缓存。
+内容尺寸如果低于此值则不缓存。
| 条件 | -分组关系 | +缓存条件 | +分组关系 | 缓存时间 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
和
diff --git a/web/public/js/components/server/http-cache-refs-config-box.js b/web/public/js/components/server/http-cache-refs-config-box.js
index 42233c3d..70c48ec5 100644
--- a/web/public/js/components/server/http-cache-refs-config-box.js
+++ b/web/public/js/components/server/http-cache-refs-config-box.js
@@ -156,7 +156,7 @@ Vue.component("http-cache-refs-config-box", {
|
- | 条件 |
+ 缓存条件 |
分组关系 |
缓存时间 |
操作 |
@@ -167,6 +167,12 @@ Vue.component("http-cache-refs-config-box", {
|
|
和
diff --git a/web/public/js/components/server/http-request-conds-view.js b/web/public/js/components/server/http-request-conds-view.js
index 40626f75..77214b3f 100644
--- a/web/public/js/components/server/http-request-conds-view.js
+++ b/web/public/js/components/server/http-request-conds-view.js
@@ -54,7 +54,7 @@ Vue.component("http-request-conds-view", {
|
-
+
{{cond.param}} {{cond.operator}}
{{cond.typeName}}:
{{cond.value}}
|