mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #91] [MERGED] fix: add Vary header to SSR and RSC responses #301
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#301
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/91
Author: @southpolesteve
Created: 2/26/2026
Status: ✅ Merged
Merged: 2/26/2026
Merged by: @southpolesteve
Base:
main← Head:fix/vary-header📝 Commits (2)
16411fbfix: add Vary: RSC, Accept header to prevent CDN cache poisoningc82e1d5remove advisory reference from code comment📊 Changes
2 files changed (+37 additions, -10 deletions)
View changed files
📝
packages/vinext/src/server/app-dev-server.ts(+13 -8)📝
packages/vinext/src/server/prod-server.ts(+24 -2)📄 Description
Summary
Adds
Vary: RSC, Acceptto all page responses to prevent CDN caching issues when the same URL returns different content types based on request headers.Vary: RSC, AcceptAccept-Encodinginto the existing Vary header instead of overwriting it, preserving the content negotiation values🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.