Next.js Discord

Discord Forum

Cache dynamically rendered pages client-side

Unanswered
Brown Noddy posted this in #help-forum
Open in Discord
Brown NoddyOP
Is there any way to cache dynamically rendered pages client-side?

For example, I have a dashboard that is unique to every user, but is quite expensive to fetch the state of. The data can be considered fresh for ~60s, so if the user navigates back to the page after leaving it within a minute, the page shouldn't re-render

SWR seems great for this, but I fetch the data and render the page server-side, so that's not an option

0 Replies