NotRestoredReasons: reasons property

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

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
# dom-not-restored-reasons-reasons

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
reasons
Experimental

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Experimental. Expect behavior to change in the future.

See also