缓存内容报头时忽略X-Cache

This commit is contained in:
刘祥超
2023-09-17 10:54:14 +08:00
parent 8a4373e984
commit 062ca1cfcd

View File

@@ -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")