Isr cache and supabase auth cookie

Hi.

Is it possible that isr cache can cache an auth cookie from supabase? And send this to another user? It’s hard for me to replicate but somehow a user logged in with someone else account this way? Or does netlify never cache cookies like that. I use nuxt 3 and have set isr for the homepage. Which can have that cookie. The dashboard itself has not cache route rules. Thanks!

Try setting netlify-vary: Caching | Netlify Docs

Thanks for the help. So i have a sb-[random]-auth-token cookie stored. How can i then prevent it from being cached by accedent by netlify? I dont understand the docs that good or there any examples somewhere. Is it even possible that netlify radom cached this cookie and showed it do a different user? What i dont want

How can you have a random cookie name? Won’t the cookie name be same for all users? I believe only the value would be different, right?

Sorry you are right. so my token is not random but how to exclude it from netlify cache? Is it possible that netlify cached the cookie on the server?

That’s exactly what I linked you to. You need: useResponseHeader · Nuxt Composables

const header = useResponseHeader('netlify-vary')
header.value = 'cookie=<name of the auth-token cookie>'

sorry i dont understand. Doesnt this include the cookie? Instead of excluding it from netlify

The issue is same as: Pagination Issue – Incorrect Page State When Switching Categories (Only in Production), except you need to set a different netlify-vary header than that thread.

I think its a different issue?. what i ask is can netlify cache the supabase cookie accidentally? If yes how to prevent that? I asked that 2 times still no answer. What you link is a cache issue on page itself not a cookie issue from the server?