Skip to content

Commit 7d6b468

Browse files
Updates warning for cache everything (#16979)
1 parent 598fbaf commit 7d6b468

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/content/docs/cache/how-to/cache-rules/examples/cache-everything.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,8 @@ import { Example, Render } from "~/components"
2828

2929
:::caution
3030

31-
This option caches all HTML regardless of the presence of dynamic content. If you use this approach to cache pages containing dynamic content, visitors may receive information not intended for them. To avoid caching dynamic content, you can add a condition to check for the presence of a cookie. For more information, refer to [Bypass Cache on Cookie](/cache/how-to/cache-rules/examples/bypass-cache-on-cookie/).
31+
This option caches all HTML regardless of the presence of dynamic content. If you use this approach to cache pages containing dynamic content, visitors may receive information not intended for them. To avoid caching dynamic content, you can add a condition to the rule's matching criteria to prevent it from matching that content. Some examples include:
32+
- Checking for the presence of a cookie.
33+
- Negative matching against known dynamic content file paths.
34+
- Negative matching against dynamic content extensions (or lack of an extension).
3235
:::

0 commit comments

Comments
 (0)