diff --git a/packages/common/http/src/transfer_cache.ts b/packages/common/http/src/transfer_cache.ts index 87d61472cc1..1871eada37e 100644 --- a/packages/common/http/src/transfer_cache.ts +++ b/packages/common/http/src/transfer_cache.ts @@ -316,7 +316,7 @@ function hasUncacheableCacheControl(headers: HttpHeaders): boolean { } return cacheControl.split(',').some((directive) => { - const directiveName = directive.trim().split('=', 1)[0].trim().toLowerCase(); + const directiveName = directive.split('=', 1)[0].trim().toLowerCase(); return UNCACHEABLE_CACHE_CONTROL_DIRECTIVES.has(directiveName); }); diff --git a/packages/core/test/bundling/hydration/bundle.golden_symbols.json b/packages/core/test/bundling/hydration/bundle.golden_symbols.json index 1f369eabc89..29316d94a5d 100644 --- a/packages/core/test/bundling/hydration/bundle.golden_symbols.json +++ b/packages/core/test/bundling/hydration/bundle.golden_symbols.json @@ -283,6 +283,7 @@ "TracingAction", "TracingService", "TransferState", + "UNCACHEABLE_CACHE_CONTROL_DIRECTIVES", "USE_VALUE", "UnsubscriptionError", "VIEW_REFS", @@ -647,9 +648,11 @@ "hasLift", "hasMatchingDehydratedView", "hasOnDestroy", + "hasOutgoingCredentials", "hasParentInjector", "hasSkipHydrationAttrOnRElement", "hasSkipHydrationAttrOnTNode", + "hasUncacheableCacheControl", "hydrateAndInvokeBlockListeners", "icuContainerIterate", "identity", @@ -721,6 +724,7 @@ "isMiddleClick", "isModifiedClickEvent", "isMouseSpecialEvent", + "isNonCacheableRequest", "isNotFound", "isObserver", "isPositive",