-
Notifications
You must be signed in to change notification settings - Fork 6k
ServerRequestCacheWebFilter causes WebSession to be read every request #7157
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
Comments
One way we can do this is to cache the request in a cookie rather than the session |
While this is a nice feature to be able to cache the request in a cookie, is it still the case that if an application wants to cache the request in a session, the |
The only place WebFlux support requires reading the session on every request is the request cache. This means that moving this to use a cookie will solve the problem. Another thing to point out is that we could solve this by adding a query parameter to the URL that signals a lookup should be performed. |
This is important for the improvements to session management improvements |
Closed via 28c0d14 |
Summary
Currently the
ServerRequestCacheWebFilter
causes theWebSession
to be read on every request. We should be able to limit this to only happening after authentication success happens.The text was updated successfully, but these errors were encountered: