Skip to content

Commit

Permalink
feat(http): allow customization of the HttpTransferCache. (#52029)
Browse files Browse the repository at this point in the history
`provideClientHydration()` accepts new `HydrationFeature` : `HttpTransferCacheOptions`.

`withHttpTransferCacheOptions` accepts an option object:
* `includeHeaders` : list of headers entries to keep in the cache with the request
* `filter` a callback to determine if a request should be cached
* `includePostRequests`: to include POST requests in the allowed methods

Implements some of the features requested in #50117

PR Close #52029
  • Loading branch information
JeanMeche authored and atscott committed Oct 6, 2023
1 parent b88cc9e commit 7dde42a
Show file tree
Hide file tree
Showing 15 changed files with 763 additions and 53 deletions.
2 changes: 2 additions & 0 deletions goldens/public-api/common/http/errors.md
Expand Up @@ -6,6 +6,8 @@

// @public
export const enum RuntimeErrorCode {
// (undocumented)
HEADERS_ALTERED_BY_TRANSFER_CACHE = 2802,
// (undocumented)
MISSING_JSONP_MODULE = -2800,
// (undocumented)
Expand Down

0 comments on commit 7dde42a

Please sign in to comment.