From 60bb3179278f565855f7dccbf0f469d2ff1af388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Fri, 24 Jan 2025 13:57:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E8=B0=83=E6=95=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mitmproxy/src/lib/interceptor/impl/res/cacheResponse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mitmproxy/src/lib/interceptor/impl/res/cacheResponse.js b/packages/mitmproxy/src/lib/interceptor/impl/res/cacheResponse.js index 04bfa90558..0d4b3e3196 100644 --- a/packages/mitmproxy/src/lib/interceptor/impl/res/cacheResponse.js +++ b/packages/mitmproxy/src/lib/interceptor/impl/res/cacheResponse.js @@ -34,7 +34,7 @@ module.exports = { // public 或 private const cacheControlType = `${interceptOpt.cacheControlType || 'public'}, ` // immutable属性 - const cacheImmutable = interceptOpt.cacheImmutable !== false ? ', immutable' : '' + const cacheImmutable = interceptOpt.cacheImmutable !== false && interceptOpt.cacheImmutable !== 'false' ? ', immutable' : '' // 获取原响应头中的cache-control、last-modified、expires const originalHeaders = {