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 |
Can we override destroy method in servlet?
What do you mean by request dispatcher in servlet?
Why setMaxAge() and getMaxAge() methods are used in Cookies?
How can you use a servlet to generate a plain text instead of html?
what is the control flow in servlet when we send a request?
What is cgi?
How values can be passed from HTML page to servlet?
What are different types of Servlets?
Which java framework is most popular?
How to debug a servlet?
Where do you define dispatcherservlet?
What is Servlets and explain the advantages of Servlet life cycle?