Hi everyone
I’m encountering an issue with fetch using {next: {revalidate}} in Next.js. I expected that once the revalidation period expires, the data would update in the background, and users accessing the page wouldn’t have to wait for the cache to refresh. However, I’m seeing the opposite behavior: the request made at the moment the cache expires seems to wait for the fetch operation to complete before serving the response.
Is there a way to implement a true stale-while-revalidate behavior? Ideally, I want users to be served stale content immediately while the cache is being refreshed in the background. Any advice or solutions would be greatly appreciated!
(Next.js v15.0.2, hosting on Vercel.com)