#ssr and csr clarification
16 messages · Page 1 of 1 (latest)
Did you tried it on build?
Yes, this behavior is in production build
For ssr, i use for fetch the parameter cache: 'no-store' based to the new api data fetching of next.js 13.4
How did you fetch users? Is it from your own database or is it from external database hosted offshore?
It s just a dummy endpoint from jsonplaceholder
If you're not caching the content, it's re-verifying with every request which would be slower.
How could i cache it, with the revalidate parameter?
If you're revalidating it, you're not caching it, so I'm not sure if I'm following your question
generally you shouldn't need to revalidate unless you've sent a mutation and know it's been updated
otherwise you can just set the revalidate interval in the route segment config and it will revalidate on its own
Do you have some resource to check how can i cache using ssr in next.js?
I understand, so i will use fetch without extra parameter and it caches by default and it continues to be ssr i think