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
Can you explain in detail 'javax.servlet' package?
What do you mean by mime type?
What is the requirement of servlet config and servlet context implemented and how are they implemented?
Which protocol will be used by browser and servlet to communicate
How to notify an object in session when session is invalidated or timed-out?
How httpservlet is different from the genericservlet?
What is httpservlet and how it is different from genericservlet?
What are the annotations used in servlet 3?
What is servlet in tomcat?
What is the procedure of invoking different servlet in a different application?
How do cookies work in servlets?
Elucidate servlet attributes and its scope?
How will two or three servlets interact or communicate with each other?
Explain load on start-up and its importance?
How can we refresh automatically when new data is entered into the database?