Unverified Commit 81bd026e authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

[test] update the metadata deployment cache header tests (#83217)

parent 9cd05eae
...@@ -691,6 +691,8 @@ describe('app dir - metadata', () => { ...@@ -691,6 +691,8 @@ describe('app dir - metadata', () => {
expect(resAppleIcon.headers.get('cache-control')).toBe( expect(resAppleIcon.headers.get('cache-control')).toBe(
isNextDev isNextDev
? 'no-cache, no-store' ? 'no-cache, no-store'
: isNextDeploy
? 'public, max-age=0, must-revalidate'
: 'public, immutable, no-transform, max-age=31536000' : 'public, immutable, no-transform, max-age=31536000'
) )
expect(resIcon.status).toBe(200) expect(resIcon.status).toBe(200)
...@@ -698,6 +700,8 @@ describe('app dir - metadata', () => { ...@@ -698,6 +700,8 @@ describe('app dir - metadata', () => {
expect(resIcon.headers.get('cache-control')).toBe( expect(resIcon.headers.get('cache-control')).toBe(
isNextDev isNextDev
? 'no-cache, no-store' ? 'no-cache, no-store'
: isNextDeploy
? 'public, max-age=0, must-revalidate'
: 'public, immutable, no-transform, max-age=31536000' : 'public, immutable, no-transform, max-age=31536000'
) )
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment