Skip to content

Commit 5ecd720

Browse files
authored
fix: narrow down mismatch content warning to non-304 responses (#2826)
1 parent 92beff4 commit 5ecd720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/run/handlers/server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export default async (
140140
netlifyCdnCacheControl,
141141
})
142142

143-
if (requestContext.isCacheableAppPage) {
143+
if (requestContext.isCacheableAppPage && response.status !== 304) {
144144
const isRSCRequest = request.headers.get('rsc') === '1'
145145
const contentType = response.headers.get('content-type') ?? undefined
146146

0 commit comments

Comments
 (0)