From 3debe1d1dfb3e69bec7daa97d9185c82ca019744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= 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