From daf891262720d8430a2c4e1e50017c8d9256d738 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Tue, 6 Feb 2024 10:30:42 -0800 Subject: [PATCH] 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 --- docs/02-app/02-api-reference/04-functions/revalidatePath.mdx | 2 +- docs/02-app/02-api-reference/04-functions/revalidateTag.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/02-app/02-api-reference/04-functions/revalidatePath.mdx b/docs/02-app/02-api-reference/04-functions/revalidatePath.mdx index 534e64383adf0..488cb48be06a0 100644 --- a/docs/02-app/02-api-reference/04-functions/revalidatePath.mdx +++ b/docs/02-app/02-api-reference/04-functions/revalidatePath.mdx @@ -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 diff --git a/docs/02-app/02-api-reference/04-functions/revalidateTag.mdx b/docs/02-app/02-api-reference/04-functions/revalidateTag.mdx index 5174116dcdbd2..402392b83ebb2 100644 --- a/docs/02-app/02-api-reference/04-functions/revalidateTag.mdx +++ b/docs/02-app/02-api-reference/04-functions/revalidateTag.mdx @@ -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: