Skip to content

Using SWR in routeRules without cookie #1023

Answered by pi0
andrewspy asked this question in Q&A
Discussion options

You must be logged in to vote

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?

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by andrewspy
Comment options

You must be logged in to vote
3 replies
@pi0
Comment options

@andrewspy
Comment options

@awacode21
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants