Unverified Commit daf89126 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Add case-sensitive note for revalidateTag/revalidatePath (#61729)

Our tag values are case-sensitive so this ensures we properly document
this so users are aware of this caveat.

x-ref:
https://github.com/vercel/next.js/pull/61392#issuecomment-1926004777

Closes NEXT-2379
parent 9cadae5e
......@@ -18,7 +18,7 @@ description: API Reference for the revalidatePath function.
revalidatePath(path: string, type?: 'page' | 'layout'): void;
```
- `path`: Either a string representing the filesystem path associated with the data you want to revalidate (for example, `/product/[slug]/page`), or the literal route segment (for example, `/product/123`). Must be less than 1024 characters.
- `path`: Either a string representing the filesystem path associated with the data you want to revalidate (for example, `/product/[slug]/page`), or the literal route segment (for example, `/product/123`). Must be less than 1024 characters. This value is case-sensitive.
- `type`: (optional) `'page'` or `'layout'` string to change the type of path to revalidate. If `path` contains a dynamic segment (for example, `/product/[slug]/page`), this parameter is required.
## Returns
......
......@@ -16,7 +16,7 @@ description: API Reference for the revalidateTag function.
revalidateTag(tag: string): void;
```
- `tag`: A string representing the cache tag associated with the data you want to revalidate. Must be less than or equal to 256 characters.
- `tag`: A string representing the cache tag associated with the data you want to revalidate. Must be less than or equal to 256 characters. This value is case-sensitive.
You can add tags to `fetch` as follows:
......
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