From 4835be182b88f67f282c30db4278c30fe9e5b483 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Wed, 23 Oct 2024 17:28:44 +0200 Subject: [PATCH] Docs: Update default marker for fetch cache option (#71728) This page was showing the outdated default. --- docs/02-app/02-api-reference/04-functions/fetch.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/02-app/02-api-reference/04-functions/fetch.mdx b/docs/02-app/02-api-reference/04-functions/fetch.mdx index 055d5f1f79152..bbc3e9f3f8ca7 100644 --- a/docs/02-app/02-api-reference/04-functions/fetch.mdx +++ b/docs/02-app/02-api-reference/04-functions/fetch.mdx @@ -49,10 +49,10 @@ Configure how the request should interact with Next.js [Data Cache](/docs/app/bu fetch(`https://...`, { cache: 'force-cache' | 'no-store' }) ``` -- **`force-cache`** (default): Next.js looks for a matching request in its Data Cache. +- **`no-store`** (default): Next.js fetches the resource from the remote server on every request without looking in the cache, and it will not update the cache with the downloaded resource. +- **`force-cache`**: Next.js looks for a matching request in its Data Cache. - If there is a match and it is fresh, it will be returned from the cache. - If there is no match or a stale match, Next.js will fetch the resource from the remote server and update the cache with the downloaded resource. -- **`no-store`**: Next.js fetches the resource from the remote server on every request without looking in the cache, and it will not update the cache with the downloaded resource. ### `options.next.revalidate`