-
I'm new to SWR routeRules, it is possible to use SWR strategy without 'set-cookie' header in the response on cached request, so that it doesn't override the current request's cookie? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi dear @andrewspy. When you enable any of caching strategies, (incoming) headers are totally ignored and But not in response. Why you are setting |
Beta Was this translation helpful? Give feedback.
-
Hi @pi0. In my context, I'm using nuxt3 with firebase hosting / cloud functions, where special I was using SSR previously and it works flawlessly, just wanted to explore SWR, but didn't know Thanks for the explanation. |
Beta Was this translation helpful? Give feedback.
Hi dear @andrewspy. When you enable any of caching strategies, (incoming) headers are totally ignored and
req.headers
is an empty object.But not in response. Why you are setting
set-cookie
in a cached handled that requires to be removed?