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 is meant by session? Tell me something about httpsession class?
What are the differences between the servletconfig interface and the servletcontext interface?
What are the phases of a servlet life cycle?
What is meant by Servlet? What are the parameters of service method?
What is a deployment descriptor?
Why do you use session tracking in httpservlet?
What is the difference between a generic servlet and http servlet?
When to use doget() and when dopost()?
What is generic servlet class?
how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file
What are the life cycle methods of a servlet?
What is a servlet context object?
How do you define a servlet?
Why servlet is used as controller ? Not JSP? I want complete explation?
How to get the IP address of client in servlet?