New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Next 13: setting headers in middleware causes full page reload between navigations #41885
Comments
Same happening to me. Following. |
It seems that the RSC Header is missing when overriding the middleware |
I'm experiencing the same problem. Have anyone found a workaround until this gets fixed? |
Same problem here, it makes my app behave extra slow with full page refreshes after I add headers in the middleware. Still not solved in next@13.1.0. Following. The problem's "solved" using |
I have the same issue. Even with |
I have the same problem but the inverse. |
Verify canary release
Provide environment information
What browser are you using? (if relevant)
Chrome
How are you deploying your application? (if relevant)
Version 105.0.5195.125 (Official Build) (x86_64)
Describe the Bug
#41380 introduced a way to override headers from middleware.
Using this functionality causes
next/link
to trigger full-page reload between navigations.This is only an issue for
next dev
. There is no bug when it's deployed on Vercel.Expected Behavior
There should not be a full-page reload when
next/link
is used.Link to reproduction
https://github.com/colinclerk/appdir-middleware-bug
To Reproduce
Clone the repo and start the dev server, then click the links between "Index" and "Page 2" - you should see full-page reloads
If helpful, here's the deployed version that doesn't exhibit the issue: https://appdir-middleware-bug.vercel.app/
The text was updated successfully, but these errors were encountered: