From c9f3813402e7698f8a55a9c98ac3fb6fb6430bf8 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Mon, 8 Apr 2024 15:52:48 +0200 Subject: [PATCH] Add additional links to staleTime docs (#64195) ## What? Few more links for relevant concepts. Closes NEXT-3027 --- .../02-api-reference/05-next-config-js/staleTimes.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/02-app/02-api-reference/05-next-config-js/staleTimes.mdx b/docs/02-app/02-api-reference/05-next-config-js/staleTimes.mdx index 5e76c4c680..6ec83a272f 100644 --- a/docs/02-app/02-api-reference/05-next-config-js/staleTimes.mdx +++ b/docs/02-app/02-api-reference/05-next-config-js/staleTimes.mdx @@ -29,14 +29,14 @@ The `static` and `dynamic` properties correspond with the time period (in second - The `dynamic` property is used when the `prefetch` prop on `Link` is left unspecified. - Default: 30 seconds -- The `static` property is used when the `prefetch` prop on `Link` is set to `true`, or when calling [`router.prefetch`](https://nextjs.org/docs/app/building-your-application/caching#routerprefetch). +- The `static` property is used when the `prefetch` prop on `Link` is set to `true`, or when calling [`router.prefetch`](/docs/app/building-your-application/caching#routerprefetch). - Default: 5 minutes > **Good to know:** > > - [Loading boundaries](/docs/app/api-reference/file-conventions/loading) are considered reusable for the `static` period defined in this configuration. -> - This doesn't disable partial rendering support, **meaning shared layouts won't automatically be refetched every navigation, only the new segment data.** -> - This doesn't change back/forward caching behavior to prevent layout shift & to prevent losing scroll position. +> - This doesn't disable [partial rendering support](/docs/app/building-your-application/routing/linking-and-navigating#4-partial-rendering), **meaning shared layouts won't automatically be refetched every navigation, only the new segment data.** +> - This doesn't change [back/forward caching](/app/building-your-application/caching#router-cache) behavior to prevent layout shift & to prevent losing the browser scroll position. > - The different properties of this config refer to variable levels of "liveness" and are unrelated to whether the segment itself is opting into static or dynamic rendering. In other words, the current `static` default of 5 minutes suggests that data feels static by virtue of it being revalidated infrequently. You can learn more about the Client Router Cache [here](/docs/app/building-your-application/caching#router-cache).