From cc24c209a12099ff5753b9d3f0c2bafcb6dab623 Mon Sep 17 00:00:00 2001 From: Adam DeHaven <2229946+adamdehaven@users.noreply.github.com> Date: Fri, 15 Mar 2024 12:43:29 -0400 Subject: [PATCH] docs(cache): add example usage for `cache.varies` (#2241) --- docs/1.guide/6.cache.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/1.guide/6.cache.md b/docs/1.guide/6.cache.md index 75f1324b30..a6f44743d2 100644 --- a/docs/1.guide/6.cache.md +++ b/docs/1.guide/6.cache.md @@ -233,7 +233,7 @@ The `cachedEventHandler` and `cachedFunction` functions accept the following opt A function that returns a `boolean` to bypass the current cache without invalidating the existing entry. :: ::field{name="varies" type="string[]"} - An array of request headers to be considered for the cache, [learn more](https://github.com/unjs/nitro/issues/1031). + An array of request headers to be considered for the cache, [learn more](https://github.com/unjs/nitro/issues/1031). If utilizing in a multi-tenant environment, you may want to pass `['host', 'x-forwarded-host']` to ensure these headers are not discarded and that the cache is unique per tenant. :: ::