docs: add documentation for HTTP_TRANSFER_CACHE_ORIGIN_MAP

This commit is contained in:
SkyZeroZx
2025-12-08 10:33:47 -05:00
committed by Alex Rickabaugh
parent 28017c1c1a
commit 7e1e396a00
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -551,6 +551,8 @@ To disable caching for an individual request, you can specify the [`transferCach
httpClient.get('/api/sensitive-data', { transferCache: false });
```
NOTE: If your application uses different HTTP origins to make API calls on the server and on the client, the `HTTP_TRANSFER_CACHE_ORIGIN_MAP` token allows you to establish a mapping between those origins, so that `HttpTransferCache` feature can recognize those requests as the same ones and reuse the data cached on the server during hydration on the client.
## Configuring a server
### Node.js