Unverified Commit f2e7c8ee authored by Sam Ko's avatar Sam Ko Committed by GitHub

docs(staletime): add clarification around prefetch false (#65252)

## Why?

Add clarification around when the `prefetch` prop on the `Link`
component is set to `false`.

- x-ref:
https://github.com/vercel/next.js/issues/51788#issuecomment-2088521708
-
https://github.com/vercel/next.js/blob/canary/test/e2e/app-dir/app-client-cache/client-cache.test.ts#L202

Closes NEXT-3275
parent dcb7e681
...@@ -7,7 +7,7 @@ description: Learn how to override the invalidation time of the Client Router Ca ...@@ -7,7 +7,7 @@ description: Learn how to override the invalidation time of the Client Router Ca
`staleTimes` is an experimental feature that allows configuring the [invalidation period](/docs/app/building-your-application/caching#duration-3) of the client router cache. `staleTimes` is an experimental feature that allows configuring the [invalidation period](/docs/app/building-your-application/caching#duration-3) of the client router cache.
This configuration option is available as of v14.2.0-canary.53. This configuration option is available as of [v14.2.0](https://github.com/vercel/next.js/releases/tag/v14.2.0).
You can enable this experimental feature & provide custom revalidation times by setting the experimental `staleTimes` flag: You can enable this experimental feature & provide custom revalidation times by setting the experimental `staleTimes` flag:
...@@ -27,7 +27,7 @@ module.exports = nextConfig ...@@ -27,7 +27,7 @@ module.exports = nextConfig
The `static` and `dynamic` properties correspond with the time period (in seconds) based on different types of [link prefetching](/docs/app/api-reference/components/link#prefetch). The `static` and `dynamic` properties correspond with the time period (in seconds) based on different types of [link prefetching](/docs/app/api-reference/components/link#prefetch).
- The `dynamic` property is used when the `prefetch` prop on `Link` is left unspecified. - The `dynamic` property is used when the `prefetch` prop on `Link` is left unspecified or is set to `false`.
- Default: 30 seconds - Default: 30 seconds
- 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). - 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 - Default: 5 minutes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment