How to avoid caching in the app directory of Next.js?
Yes, in the app folder, Next.js by default caches all fetched results. If you are using fetch(), you can change this behavior per query, with revalidate or cache option: fetch(‘https://…’, { next: { revalidate: 10 } }); fetch(‘https://…’, { cache: ‘no-store’ }); You can also control the behavior with Route Segment Config, again if you … Read more