Find out whether the page was cached by the browser:
The persisted property returns a Boolean value that indicates if the webpage is loaded directly from the server, or if the page is cached, when an onpageshow or onpagehide event occurs.
This property is read-only.
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
persisted | Yes | 11.0 | Yes | 5.0 | Yes |
Return Value: |
A Boolean, indicating whether the webpage is loading from a cache.
Possible values:
|
---|
HTML DOM reference: The onpageshow Event