silverwolf-x/project / test /development /dev-cache-control-no-cache /dev-cache-control-no-cache.test.ts
silverwolf-x's picture
download
raw
535 Bytes
import { nextTestSetup } from 'e2e-utils'
describe('dev Cache-Control header', () => {
const { next } = nextTestSetup({
files: __dirname,
})
it('should use no-cache for pages router', async () => {
const res = await next.fetch('/pages-route')
expect(res.headers.get('Cache-Control')).toBe('no-cache, must-revalidate')
})
it('should use no-cache for app router', async () => {
const res = await next.fetch('/app-route')
expect(res.headers.get('Cache-Control')).toBe('no-cache, must-revalidate')
})
})

Xet Storage Details

Size:
535 Bytes
·
Xet hash:
5b2e5c27d72916521c6638c60a0383c1448675085f0c1f2bd7e253ce02b890d0

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.