mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fixup! fix(common): skip transfer cache for uncacheable HTTP traffic
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user