Can I check whether a page is cached by the browser?
There is no direct Javascript interface for checking the contents of the browser’s cache. It would be a security hazard if you were able to probe the contents of the users’ file system. But there are indirect techniques you can use to track pages people have visited on your site, which are likely to be cached. The key way to record that an HTML document or image has loaded is the onload event that is triggered when the download is complete. These Javascript events can be assigned an event handler function to be called when the event occurs. The event handler function may then store the page information in a cookie.
Related Questions
- If I use an auto-configuration script in my client Internet Explorer web browser, I cannot get to the login page of the ProCurve 700wl product. Why?
- Using the browser Back button after following a link in the search-results page results in a "Page Expired" error. What should I do?
- Can I check whether a page is cached by the browser?