Zampa
Explore posts from serversIf I have several routes cached with swr, how do I bypass that cache if the user is authenticated?
I guess this is because Nuxt's compiler can only statically analyze this code during build time and correctly apply these rules to the route. It's not dynamic.
15 replies
If I have several routes cached with swr, how do I bypass that cache if the user is authenticated?
15 replies
If I have several routes cached with swr, how do I bypass that cache if the user is authenticated?
Thanks - this works well for caching a server API response, but I'm wanting to actually cache the entire Nuxt page/route itself...
so you hit
/blog
not logged in, it gets served from cache
you hit /blog
while logged in, it bypasses cache15 replies