mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: add documentation for HTTP_TRANSFER_CACHE_ORIGIN_MAP
This commit is contained in:
committed by
Alex Rickabaugh
parent
28017c1c1a
commit
7e1e396a00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user