Next.js Discord

Discord Forum

revalidation problem since last week

Unanswered
thomasschwinn posted this in #help-forum
Open in Discord
I have a route handler in my app that makes a request like this:
const a = await fetch(fetchUrl, {next: { revalidate: 9000 }});

it usually makes around 9 requests per day to a rapidApi endpoint, it worked fine until last week, then for some reason it seems it's not caching anymore, requests to the rapidapi server went up and of course hit the maximum.
you can see my stats in the picture
what is happening here?

3 Replies

Is it caching on a client or server level
If it’s client then multiple requests will still be made if it’s different devices
it's a fetch in a route handler, it caches on the server