Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update response cache test #51072

Merged
merged 1 commit into from
Jun 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ describe('minimal-mode-response-cache', () => {
})

it('app router revalidate should work with previous response cache', async () => {
const res1 = await fetchViaHTTP(appPort, '/app-blog', undefined, {
const res1 = await fetchViaHTTP(appPort, '/app-blog.rsc', undefined, {
headers: {
'x-matched-path': '/app-blog.rsc',
rsc: '1',
RSC: '1',
},
})
const content1 = await res1.text()
Expand All @@ -95,7 +95,8 @@ describe('minimal-mode-response-cache', () => {

const res2 = await fetchViaHTTP(appPort, '/app-blog', undefined, {
headers: {
'x-matched-path': '/app-blog',
'x-matched-path': '/app-blog.rsc',
RSC: '1',
},
})
const content2 = await res2.text()
Expand Down