@angular/common/http

HTTP_TRANSFER_CACHE_ORIGIN_MAP

constant

If your application uses different HTTP origins to make API calls (via HttpClient) 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.

  
    const HTTP_TRANSFER_CACHE_ORIGIN_MAP: InjectionToken<Record<string, string>>;
  
  
Jump to details