Skip to content

Commit

Permalink
docs(cache): add example usage for cache.varies (#2241)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven authored Mar 15, 2024
1 parent c5dbb45 commit cc24c20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/1.guide/6.cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
::
::

Expand Down

0 comments on commit cc24c20

Please sign in to comment.