NotRestoredReasons: reasons property

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The reasons read-only property of the NotRestoredReasons interface returns an array of NotRestoredReasonDetails objects, each representing a reason why the navigated page was blocked from using the back/forward cache (bfcache).

Value

An array of NotRestoredReasonDetails objects. See Blocking reasons for a list of the possible blocking reasons.

If the document is in a cross-origin <iframe>, reasons will return null, but the parent document may show a reason of "masked" if any <iframe>s blocked bfcache usage for the top-level frame.

Examples

Specifications

Specification
HTML Standard
# dom-not-restored-reasons-reasons

Browser compatibility

BCD tables only load in the browser

See also