Skip to content

Commit cc24c20

Browse files
authored
docs(cache): add example usage for cache.varies (#2241)
1 parent c5dbb45 commit cc24c20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/1.guide/6.cache.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ The `cachedEventHandler` and `cachedFunction` functions accept the following opt
233233
A function that returns a `boolean` to bypass the current cache without invalidating the existing entry.
234234
::
235235
::field{name="varies" type="string[]"}
236-
An array of request headers to be considered for the cache, [learn more](https://github.com/unjs/nitro/issues/1031).
236+
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.
237237
::
238238
::
239239

0 commit comments

Comments
 (0)