Skip to content

perf(middleware): remove response cookie mutation to restore edge cac… - #286

Merged
O2sa merged 1 commit into
mainfrom
perf/middleware-cache-cookies
Nov 27, 2026
Merged

O2sa merged 1 commit into
mainfrom
perf/middleware-cache-cookies

Conversation

@O2sa

@O2sa O2sa commented Nov 27, 2026

Copy link
Copy Markdown
Owner

No description provided.

…hing

- Remove response.cookies.set() on transparent rewrites to eliminate Cache-Control: no-store
- Allow Next.js SSG routes to emit natural cache headers for Cloudflare edge caching
- Update middleware tests to verify cookies are not set on response
@O2sa
O2sa merged commit 862d15f into main Nov 27, 2026
5 of 6 checks passed
@O2sa

O2sa commented Nov 27, 2026

Copy link
Copy Markdown
Owner Author

✨ Thank you, @O2sa! Another great contribution merged! 🚀

You've been a fantastic contributor! We truly appreciate your continued support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant