From be7fc25f55bf95527197b423a0e90bddf2f7ff6b Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Wed, 16 Jun 2021 11:04:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A6=E5=8F=91=E6=B5=8F=E8=A7=88=E5=99=A830?= =?UTF-8?q?4=E7=BC=93=E5=AD=98=E4=B9=9F=E7=AE=97=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E5=91=BD=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request_cache.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/nodes/http_request_cache.go b/internal/nodes/http_request_cache.go index 6ac0c65..25694c0 100644 --- a/internal/nodes/http_request_cache.go +++ b/internal/nodes/http_request_cache.go @@ -184,6 +184,7 @@ func (this *HTTPRequest) doCacheRead() (shouldStop bool) { // 自定义Header this.processResponseHeaders(http.StatusNotModified) this.writer.WriteHeader(http.StatusNotModified) + this.isCached = true this.cacheRef = nil return true } @@ -193,6 +194,7 @@ func (this *HTTPRequest) doCacheRead() (shouldStop bool) { // 自定义Header this.processResponseHeaders(http.StatusNotModified) this.writer.WriteHeader(http.StatusNotModified) + this.isCached = true this.cacheRef = nil return true }