Next.js Discord

Discord Forum

Is it okay to cache session client side?

Unanswered
Brandt's Cormorant posted this in #help-forum
Open in Discord
Brandt's CormorantOP
I've noticed that whenever I do getSession client side, Next does a post request to api/auth/session, what is the best practice to pervent/reduce the post requests to the server? (I am heavily using client side rendering so I'm not using server props often)

0 Replies