Next.js Discord

Discord Forum

How to opt out of caching an API in trpc NEXT/SSR?

Unanswered
Polar bear posted this in #help-forum
Open in Discord
Avatar
Polar bearOP
I faced an issue where all the data's being fetched from my server component are not the latest, they seem to be the latest on dev, but not on production.
I have tried to set a header in the responsemeta and also tried to add a stale time of 0 , below are the screenshots for the server
Image
Image
Image

0 Replies