Is there a jQuery
approach to detect whether a page is loaded from the browser cache OR it has been received from the server by HTTP request?
Serve the page server-written timestamp value var origin = <%=someTimeStamp %>;
, read it and compare against a JavaScript generated value representing the current time.
Note: The client timestamp and the server timestamp would be different because there are chances the client system time is wrong and also the server and the client systems may not be from the same time zone. This has to be taken care.