Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


How to prevent browser from caching the page content?



How to prevent browser from caching the page content?..

Answer / 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

More Servlets Interview Questions

Explain the difference between generic servlet and http servlet?

0 Answers  


What if you need to span your transaction across multiple servlet invocations?

0 Answers  


What’s the difference between forward() and sendredirect() methods?

0 Answers  


What is the first statement in jsp page.

7 Answers   L&T,


What are different Authentication options available in Servlets.

0 Answers  






What is the difference between servlet and jsp?

0 Answers  


Is the init(ServletConfig sc) throws IOException or not?

3 Answers  


What do you mean by interservlet communication?

0 Answers  


What are the annotations used in servlet 3?

0 Answers  


How is an application exception handling is done using a servlet?

0 Answers  


What is the use of welcome-file-list?

0 Answers  


How httpservlet is different from the genericservlet?

0 Answers  






Categories