From df7fa62cb86eb5bcab8afda193ce54c38df498df Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sun, 17 Sep 2023 10:54:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=86=85=E5=AE=B9=E6=8A=A5?= =?UTF-8?q?=E5=A4=B4=E6=97=B6=E5=BF=BD=E7=95=A5X-Cache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_writer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/nodes/http_writer.go b/internal/nodes/http_writer.go index c6f6998..30e6023 100644 --- a/internal/nodes/http_writer.go +++ b/internal/nodes/http_writer.go @@ -1284,7 +1284,7 @@ func (this *HTTPWriter) calculateHeaderLength() (result int) { func (this *HTTPWriter) shouldIgnoreHeader(name string) bool { switch name { - case "Set-Cookie", "Strict-Transport-Security", "Alt-Svc", "Upgrade": + case "Set-Cookie", "Strict-Transport-Security", "Alt-Svc", "Upgrade", "X-Cache": return true default: return (this.isPartial && name == "Content-Range")