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-box.js b/web/public/js/components/server/http-cache-refs-box.js index 650e528f..38a04e54 100644 --- a/web/public/js/components/server/http-cache-refs-box.js +++ b/web/public/js/components/server/http-cache-refs-box.js @@ -37,13 +37,19 @@ Vue.component("http-cache-refs-box", { - - + + - + @@ -167,6 +167,12 @@ Vue.component("http-cache-refs-config-box", {
条件分组关系缓存条件分组关系 缓存时间
+ + {{cacheRef.minSize.count}}{{cacheRef.minSize.unit}} + - {{cacheRef.maxSize.count}}{{cacheRef.maxSize.unit}} + + 0 - {{cacheRef.maxSize.count}}{{cacheRef.maxSize.unit}} + 状态码:{{cacheRef.status.map(function(v) {return v.toString()}).join(", ")}} 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", {
条件缓存条件 分组关系 缓存时间 操作 + + {{cacheRef.minSize.count}}{{cacheRef.minSize.unit}} + - {{cacheRef.maxSize.count}}{{cacheRef.maxSize.unit}} + + 0 - {{cacheRef.maxSize.count}}{{cacheRef.maxSize.unit}} + 状态码:{{cacheRef.status.map(function(v) {return v.toString()}).join(", ")}} 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}}