From f1c82e07cf356d9a2f87137b9ad12d6849e3f606 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Tue, 8 Jun 2021 22:45:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E4=B8=8D=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request_cache.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/nodes/http_request_cache.go b/internal/nodes/http_request_cache.go index 80dd4fc..36c0d24 100644 --- a/internal/nodes/http_request_cache.go +++ b/internal/nodes/http_request_cache.go @@ -39,6 +39,9 @@ func (this *HTTPRequest) doCacheRead() (shouldStop bool) { continue } if cacheRef.Conds.MatchRequest(this.Format) { + if cacheRef.IsReverse { + return + } this.cacheRef = cacheRef refType = "server" break @@ -53,6 +56,9 @@ func (this *HTTPRequest) doCacheRead() (shouldStop bool) { continue } if cacheRef.Conds.MatchRequest(this.Format) { + if cacheRef.IsReverse { + return + } this.cacheRef = cacheRef refType = "policy" break