Skip to content

Commit 821efa5

Browse files
committed
docs: refine wording on how the cache works
1 parent 1acaab8 commit 821efa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/client/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
*
4242
* ### Caching
4343
*
44-
* By default, the client caches responses in browser environments for a duration of 5 minutes.
44+
* By default, the client caches successful (200) delegated routing responses in browser environments (that support the [Cache API](https://developer.mozilla.org/en-US/docs/Web/API/Cache)) for a duration of 5 minutes. The client does this by adding an `x-cache-expires` header to the response object.
4545
*
4646
* If caching is enabled, the client will cache responses for the duration of `cacheTTL` milliseconds.
4747
* If `cacheTTL` is 0, caching is disabled:

0 commit comments

Comments
 (0)