小调整。

pull/445/head
王良 2025-01-24 13:57:36 +08:00
parent 09523c58ce
commit 60bb317927
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {