Skip to content

Commit 059fb86

Browse files
committedApr 4, 2025·
revert client in case we add more header
1 parent d7dc4df commit 059fb86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/next/src/client/components/router-reducer/fetch-server-response.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export async function fetchServerResponse(
185185
const canonicalUrl = res.redirected ? responseUrl : undefined
186186

187187
const contentType = res.headers.get('content-type') || ''
188-
const interception = res.headers.get('vary') === NEXT_URL
188+
const interception = !!res.headers.get('vary')?.includes(NEXT_URL)
189189
const postponed = !!res.headers.get(NEXT_DID_POSTPONE_HEADER)
190190
const staleTimeHeader = res.headers.get(NEXT_ROUTER_STALE_TIME_HEADER)
191191
const staleTime =

0 commit comments

Comments
 (0)
Please sign in to comment.