-
Notifications
You must be signed in to change notification settings - Fork 4k
Never follow redirect in the middleware #3552
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
Conversation
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does it fix?
On 2c for redirects from within a page (i.e. not from the middleware), the first ever call could return a 404. This was not necessarily noticeable, as most of them were for background request that would never be accessed. And subsequent request worked just fine. |
Configure the middleware to not follow redirects, ensuring that redirects are handled by the client instead.
This was causing 404 for most redirects on the first call after an invalidation in 2C.