You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found it's hard to test directly on this minimal reproduction but it can indicate how bug work. Two files:
server/routes/index.ts to proxy to different output
nuxt.config.ts to enable SWR.
Describe the bug
I write a server middleware to proxyRequest to different page render for login (A) and guest (B) user in same URL. The login/guest status is judged by an auth cookie. I enable routeRules swr=true.
Visit home page on login status and get version A.
logout (delete cookie) and visit home page. Server will respond 304 even when response ETag (B) different with request If-None-Match (A).
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
I write minimal reproduction here:
https://stackblitz.com/edit/github-ajxlmh?file=server%2Froutes%2Findex.ts
I found it's hard to test directly on this minimal reproduction but it can indicate how bug work. Two files:
server/routes/index.ts to proxy to different output
nuxt.config.ts to enable SWR.
Describe the bug
I write a server middleware to proxyRequest to different page render for login (A) and guest (B) user in same URL. The login/guest status is judged by an auth cookie. I enable routeRules swr=true.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: