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
Why filter is used in servlet?
Explain how to improve Servlet Performance?
How printwriter is different from servletoutputstream?
Is it possible to have a constructor inside the servlet?
How can you create a session in servlet?
What are the type of protocols used in httpservlet?
Is servlet a controller?
How do we translate jsp?
Which exception is thrown if the servlet is not initialized properly?
What is context in servlet?
Why HttpServlet class is declared abstract?
What's the architecture of a servlet package?
What are the key methods that are involved in processing of http servlets?
Write a program to show the functionality of doget and dopost method?
How to read request headers from servlets?