Skip to content

Commit 4aa52a8

Browse files
Copilothi-ogawa
andcommitted
Remove vary: accept header as it's no longer needed
Co-authored-by: hi-ogawa <4232207+hi-ogawa@users.noreply.github.com>
1 parent 8b3d354 commit 4aa52a8

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

packages/plugin-rsc/examples/basic/src/framework/entry.rsc.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ export async function handleRequest({
7070
status: returnValue?.ok === false ? 500 : undefined,
7171
headers: {
7272
'content-type': 'text/x-component;charset=utf-8',
73-
vary: 'accept',
7473
},
7574
})
7675
}
@@ -93,7 +92,6 @@ export async function handleRequest({
9392
return new Response(htmlStream, {
9493
headers: {
9594
'content-type': 'text/html;charset=utf-8',
96-
vary: 'accept',
9795
},
9896
})
9997
}

packages/plugin-rsc/examples/starter-cf-single/src/framework/entry.rsc.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ async function handler(request: Request): Promise<Response> {
6464
status: returnValue?.ok === false ? 500 : undefined,
6565
headers: {
6666
'content-type': 'text/x-component;charset=utf-8',
67-
vary: 'accept',
6867
},
6968
})
7069
}
@@ -83,7 +82,6 @@ async function handler(request: Request): Promise<Response> {
8382
status: returnValue?.ok === false ? 500 : undefined,
8483
headers: {
8584
'Content-type': 'text/html',
86-
vary: 'accept',
8785
},
8886
})
8987
}

packages/plugin-rsc/examples/starter/src/framework/entry.rsc.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ export default async function handler(request: Request): Promise<Response> {
7171
status: returnValue?.ok === false ? 500 : undefined,
7272
headers: {
7373
'content-type': 'text/x-component;charset=utf-8',
74-
vary: 'accept',
7574
},
7675
})
7776
}
@@ -94,7 +93,6 @@ export default async function handler(request: Request): Promise<Response> {
9493
status: returnValue?.ok === false ? 500 : undefined,
9594
headers: {
9695
'Content-type': 'text/html',
97-
vary: 'accept',
9896
},
9997
})
10098
}

0 commit comments

Comments
 (0)