How to prevent browser from caching the page content?
Answer Posted / janet
Before sending the data to the browser,write the follwing code.
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache");
response.setDateHeader("Expires",0);
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What are different ways for authentication of servlet?
What is the difference between Servlets and Applets?
What is session?
What is the difference between CGI and Servlet?
What are some advantages of storing session state in cookies?
What are session variable in servlets?
What's the architecture of a servlet package?
What is dispatcher servlet?
How printwriter is different from servletoutputstream?
What is the use of httpservletrequestwrapper?
What is the directory structure of web application?
What is servlet initializer?
What are the ways to handle multi-threading in servlets?
Difference between GET and POST?
What are all the protocols supported by httpservlet?