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,14 +691,18 @@ describe('app dir - metadata', () => {
expect(resAppleIcon.headers.get('cache-control')).toBe(
isNextDev
? 'no-cache, no-store'
: 'public, immutable, no-transform, max-age=31536000'
: isNextDeploy
? 'public, max-age=0, must-revalidate'
: 'public, immutable, no-transform, max-age=31536000'
)
expect(resIcon.status).toBe(200)
expect(resIcon.headers.get('content-type')).toBe('image/png')
expect(resIcon.headers.get('cache-control')).toBe(
isNextDev
? 'no-cache, no-store'
: 'public, immutable, no-transform, max-age=31536000'
: isNextDeploy
? 'public, max-age=0, must-revalidate'
: '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