Constant fetch uncached on a dynamic route
Why it matters
Since Next.js 15 fetch is not cached by default: on a route rendered per request, a fetch of a constant URL refetches the same data on every request.
Fix
Add next: { revalidate: N } (or tags), cache: "force-cache", or move the call into a "use cache" function.
Credit
From the Next.js team
fetch is not cached by default since Next.js 15; caching must be opted into.
References
- CachingNext.js
- Fetching DataNext.js
- use cacheNext.js