+ template: `
[{{accessLog.region}}] {{accessLog.remoteAddr}} [{{accessLog.timeLocal}}] [{{accessLog.networking}}] {{accessLog.questionType}} {{accessLog.questionName}} ->
{{accessLog.recordType}} {{accessLog.recordValue}}
@@ -3744,6 +3768,7 @@ Vue.component("http-cache-refs-box", {
+ 忽略URI参数
{{cacheRef.minSize.count}}{{cacheRef.minSize.unit}}
- {{cacheRef.maxSize.count}}{{cacheRef.maxSize.unit}}
@@ -4055,7 +4080,7 @@ Vue.component("http-cache-ref-box", {
conds: null, // 复杂条件
simpleCond: null, // 简单条件
allowChunkedEncoding: true,
- allowPartialContent: false,
+ allowPartialContent: true,
enableIfNoneMatch: false,
enableIfModifiedSince: false,
isReverse: this.vIsReverse,
@@ -4093,6 +4118,9 @@ Vue.component("http-cache-ref-box", {
return {
ref: ref,
+
+ keyIgnoreArgs: typeof ref.key == "string" && ref.key.indexOf("${args}") < 0,
+
moreOptionsVisible: false,
condCategory: "simple", // 条件分类:simple|complex
@@ -4103,6 +4131,23 @@ Vue.component("http-cache-ref-box", {
components: window.REQUEST_COND_COMPONENTS
}
},
+ watch: {
+ keyIgnoreArgs: function (b) {
+ if (typeof this.ref.key != "string") {
+ return
+ }
+ if (b) {
+ this.ref.key = this.ref.key.replace("${isArgs}${args}", "")
+ return;
+ }
+ if (this.ref.key.indexOf("${isArgs}") < 0) {
+ this.ref.key = this.ref.key + "${isArgs}"
+ }
+ if (this.ref.key.indexOf("${args}") < 0) {
+ this.ref.key = this.ref.key + "${args}"
+ }
+ }
+ },
methods: {
changeOptionsVisible: function (v) {
this.moreOptionsVisible = v
@@ -4149,6 +4194,9 @@ Vue.component("http-cache-ref-box", {
// resize window
let dialog = window.parent.document.querySelector("*[role='dialog']")
+ if (dialog == null) {
+ return
+ }
switch (condCategory) {
case "simple":
dialog.style.width = "40em"
@@ -4220,12 +4268,19 @@ Vue.component("http-cache-ref-box", {
- | 缓存Key * |
+ 缓存Key * |
|
+
+ | 忽略URI参数 |
+
+
+
+ |
+
|
@@ -4267,7 +4322,7 @@ Vue.component("http-cache-ref-box", {
支持缓存区间内容 |
-
+
|
@@ -5816,6 +5871,7 @@ Vue.component("http-cache-refs-config-box", {
+ 忽略URI参数
{{cacheRef.minSize.count}}{{cacheRef.minSize.unit}}
- {{cacheRef.maxSize.count}}{{cacheRef.maxSize.unit}}
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 dff558a1..cfd266a8 100644
--- a/web/public/js/components/server/http-cache-ref-box.js
+++ b/web/public/js/components/server/http-cache-ref-box.js
@@ -67,6 +67,9 @@ Vue.component("http-cache-ref-box", {
return {
ref: ref,
+
+ keyIgnoreArgs: typeof ref.key == "string" && ref.key.indexOf("${args}") < 0,
+
moreOptionsVisible: false,
condCategory: "simple", // 条件分类:simple|complex
@@ -77,6 +80,23 @@ Vue.component("http-cache-ref-box", {
components: window.REQUEST_COND_COMPONENTS
}
},
+ watch: {
+ keyIgnoreArgs: function (b) {
+ if (typeof this.ref.key != "string") {
+ return
+ }
+ if (b) {
+ this.ref.key = this.ref.key.replace("${isArgs}${args}", "")
+ return;
+ }
+ if (this.ref.key.indexOf("${isArgs}") < 0) {
+ this.ref.key = this.ref.key + "${isArgs}"
+ }
+ if (this.ref.key.indexOf("${args}") < 0) {
+ this.ref.key = this.ref.key + "${args}"
+ }
+ }
+ },
methods: {
changeOptionsVisible: function (v) {
this.moreOptionsVisible = v
@@ -123,6 +143,9 @@ Vue.component("http-cache-ref-box", {
// resize window
let dialog = window.parent.document.querySelector("*[role='dialog']")
+ if (dialog == null) {
+ return
+ }
switch (condCategory) {
case "simple":
dialog.style.width = "40em"
@@ -194,12 +217,19 @@ Vue.component("http-cache-ref-box", {
- | 缓存Key * |
+ 缓存Key * |
|
+
+ | 忽略URI参数 |
+
+
+
+ |
+
|
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 21f02ccf..c594ecd9 100644
--- a/web/public/js/components/server/http-cache-refs-box.js
+++ b/web/public/js/components/server/http-cache-refs-box.js
@@ -47,6 +47,7 @@ Vue.component("http-cache-refs-box", {
+ 忽略URI参数
{{cacheRef.minSize.count}}{{cacheRef.minSize.unit}}
- {{cacheRef.maxSize.count}}{{cacheRef.maxSize.unit}}
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 11a49a38..51ac3684 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
@@ -180,6 +180,7 @@ Vue.component("http-cache-refs-config-box", {
+ 忽略URI参数
{{cacheRef.minSize.count}}{{cacheRef.minSize.unit}}
- {{cacheRef.maxSize.count}}{{cacheRef.maxSize.unit}}