Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Can we override destroy method in servlet?

0 Answers  


What do you mean by request dispatcher in servlet?

0 Answers  


Why setMaxAge() and getMaxAge() methods are used in Cookies?

2 Answers  


How can you use a servlet to generate a plain text instead of html?

0 Answers  


what is the control flow in servlet when we send a request?

5 Answers   TCS,


What is cgi?

0 Answers  


How values can be passed from HTML page to servlet?

7 Answers   ABC,


What are different types of Servlets?

12 Answers  


Which java framework is most popular?

0 Answers  


How to debug a servlet?

2 Answers  


Where do you define dispatcherservlet?

0 Answers  


What is Servlets and explain the advantages of Servlet life cycle?

0 Answers  


Categories