Skip to content

Commit d88a682

Browse files
committed
Add test for external rewrite
1 parent c235ca5 commit d88a682

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/integration/image-optimizer/test/index.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,9 @@ describe('Image Optimizer', () => {
856856
const res = await fetchViaHTTP(appPort, '/_next/image', query, opts)
857857
expect(res.status).toBe(200)
858858
expect(res.headers.get('Content-Type')).toBe('image/webp')
859+
expect(res.headers.get('Cache-Control')).toBe(
860+
'public, max-age=31536000, must-revalidate'
861+
)
859862
await expectWidth(res, 64)
860863
})
861864
})

0 commit comments

Comments
 (0)