This is a discussion on How do we prevent browser from caching output of my JSP pages? within the Java Server Pages (JSP) forums, part of the Web Development category; How do we prevent browser from caching output of my JSP pages?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| You can prevent pages from caching JSP pages output using the below code snippet. <%response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 response.setHeader("Pragma","no-cache"); //HTTP 1.0 response.setDateHeader ("Expires", 0);//prevents caching at the proxy server %> |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I prevent the browser from loading a certain page if the user won't or can't | GDevakii | HTML, CSS and Javascript Coding Techniques | 1 | 01-10-2008 09:12 PM |
| Explain how Caching in Asp.net 2.0 is different from Caching in Asp.net 1.1? | Arun | ASP and ASP.NET Programming | 6 | 09-19-2007 10:15 PM |
| What are the Types of caching in dot net 2005? | Archer | ASP and ASP.NET Programming | 12 | 08-18-2007 03:00 AM |
| Caching in php | abhilashdas | PHP Programming | 1 | 08-06-2007 11:42 PM |
| ASP Caching | nhoj | ASP and ASP.NET Programming | 0 | 04-09-2007 09:12 AM |