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
How servlet is created?
What's the advantages using servlets than using cgi?
How the JSP file will be executed on the Server side?
How to generate the server side programming and the advantages of it over the other languages?
Can you call a jsp from the servlet?
Is tomcat a servlet container?
What is lazy loading and what is Generic Servlet Class?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
What are the phases of servlet life cycle?
What is called Scriptlet?
Why servlet is mostly used?
Explain the lifecycle of a servlet?
What are the different methods involved in the process of session management in servlets?
What must be implemented by all servlets?
How we can call a jsp from the servlet?