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 the importance of init() method in Servlet ?
When Servlet is unloaded?
I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?
When jsessionid is created?
What is the difference between using getSession(true) and getSession(false) methods?
How can we perform any action at the time of deploying the project?
What is SingleThreadModel interface?
What is difference between server and servlet?
What's the servlet interface?
Difference between httpservlet and generic servlets?
Explain the jar and war files in servlet?
How do you load an image in a Servlet?
Explain the features are in servlet 3?
Can you refresh servlet in client and server-side automatically?
Which method of the httpservletrequest object is used?