fixup! fix(common): skip transfer cache for uncacheable HTTP traffic

This commit is contained in:
SkyZeroZx
2026-06-01 10:13:16 -05:00
parent 4d150156ca
commit 64ce11fcd4
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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);
});
@@ -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",