How can i prevent Browser from Caching the Page content?

Before sending the data to the browser, use the following code:

response.setHeader ("Pragma","no-cache");
response.setDateHeader ("Expires", 0);

This also helps in case, when user should not be able to see previous pages by clicking the Back button in the browser.


Popular posts from this blog

Installing Bugzilla on Windows

Online Hindi Radio Stations

Copy/Paste the block of text in vi/vim