In my web application I wants the java script to clear the cache when the user close the browser.
The javascript should listen to the event and clear the cache.
Can anyone please provide me sample code or any useful link?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Technically is impossible.
What you can do instead is to tell the browser to not cache the page by using the following meta tags:
Here is an article for reference http://www.htmlgoodies.com/beyond/reference/article.php/3472881