Unverified Commit 3327565c authored by Mohammed's avatar Mohammed Committed by GitHub

docs(fetch): update wording on conflicting cache and revalidate options (#80591)

Clarifies that using conflicting options such as `{ revalidate: 3600,
cache: 'no-store' }` results in a warning in the terminal rather than an
error.

This change helps accurately reflect the current runtime behavior and
avoids misleading readers into expecting a hard failure.

The update improves developer understanding when configuring fetch/cache
strategies in their applications.

---------
Co-authored-by: 's avatarJoseph <joseph.chamochumbi@vercel.com>
parent e0a7a95f
...@@ -71,7 +71,7 @@ Set the cache lifetime of a resource (in seconds). [Data Cache](/docs/app/guides ...@@ -71,7 +71,7 @@ Set the cache lifetime of a resource (in seconds). [Data Cache](/docs/app/guides
> >
> - If an individual `fetch()` request sets a `revalidate` number lower than the [default `revalidate`](/docs/app/api-reference/file-conventions/route-segment-config#revalidate) of a route, the whole route revalidation interval will be decreased. > - If an individual `fetch()` request sets a `revalidate` number lower than the [default `revalidate`](/docs/app/api-reference/file-conventions/route-segment-config#revalidate) of a route, the whole route revalidation interval will be decreased.
> - If two fetch requests with the same URL in the same route have different `revalidate` values, the lower value will be used. > - If two fetch requests with the same URL in the same route have different `revalidate` values, the lower value will be used.
> - Conflicting options such as `{ revalidate: 3600, cache: 'no-store' }` will cause an error. > - Conflicting options such as `{ revalidate: 3600, cache: 'no-store' }` are not allowed, both will be ignored, and in development mode a warning will be printed to the terminal.
### `options.next.tags` ### `options.next.tags`
......
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