Skip to content

Commit

Permalink
feat(http): allow customization of the HttpTransferCache.
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
  • Loading branch information
JeanMeche committed Oct 4, 2023
1 parent 4237096 commit b67b8dc
Show file tree
Hide file tree
Showing 14 changed files with 766 additions and 77 deletions.
2 changes: 2 additions & 0 deletions goldens/public-api/common/http/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

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

0 comments on commit b67b8dc

Please sign in to comment.