Class BackForwardCacheNotUsedEventArgs
Fired for failed bfcache history navigations if BackForwardCache feature is enabled. Do not assume any ordering with the Page.frameNavigated event. This event is fired only for main-frame history navigation where the document changes (non-same-document navigations), when bfcache navigation fails.
public sealed record BackForwardCacheNotUsedEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<BackForwardCacheNotUsedEventArgs>
- Inheritance
-
EventArgsBackForwardCacheNotUsedEventArgs
- Implements
-
IEquatable<EventArgs>
- Inherited Members
-
EventArgs.ToString()EventArgs.GetHashCode()EventArgs.Equals(EventArgs)EventArgs.<Clone>$()EventArgs.BiDiEventArgs.AdditionalDataEventArgs.AdditionalMessageData
Constructors
BackForwardCacheNotUsedEventArgs(LoaderId, FrameId, ImmutableArray<BackForwardCacheNotRestoredExplanation>, BackForwardCacheNotRestoredExplanationTree?)
Fired for failed bfcache history navigations if BackForwardCache feature is enabled. Do not assume any ordering with the Page.frameNavigated event. This event is fired only for main-frame history navigation where the document changes (non-same-document navigations), when bfcache navigation fails.
public BackForwardCacheNotUsedEventArgs(LoaderId LoaderId, FrameId FrameId, ImmutableArray<BackForwardCacheNotRestoredExplanation> NotRestoredExplanations, BackForwardCacheNotRestoredExplanationTree? NotRestoredExplanationsTree = null)
Parameters
LoaderIdLoaderIdThe loader id for the associated navigation.
FrameIdFrameIdThe frame id of the associated frame.
NotRestoredExplanationsImmutableArray<BackForwardCacheNotRestoredExplanation>Array of reasons why the page could not be cached. This must not be empty.
NotRestoredExplanationsTreeBackForwardCacheNotRestoredExplanationTreeTree structure of reasons why the page could not be cached for each frame.
Properties
FrameId
The frame id of the associated frame.
public FrameId FrameId { get; init; }
Property Value
LoaderId
The loader id for the associated navigation.
public LoaderId LoaderId { get; init; }
Property Value
NotRestoredExplanations
Array of reasons why the page could not be cached. This must not be empty.
public ImmutableArray<BackForwardCacheNotRestoredExplanation> NotRestoredExplanations { get; init; }
Property Value
NotRestoredExplanationsTree
Tree structure of reasons why the page could not be cached for each frame.
public BackForwardCacheNotRestoredExplanationTree? NotRestoredExplanationsTree { get; init; }