Hi Raj,
Try this:
<%
response.setHeader("Cache-Control","no-store"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader("Expires","0"); //prevents caching at the proxy server
%>
See in any case RFC 2616 (http 1.1)
Rajesh Nagarjunan wrote:
> Hi,
>
> Can someone please help me out with the browser caching issue where in I
> have a JSP with some java servlet code embedded in it.....
> Is there any browser setting along with code that will fix the problem
> of caching the pages...
> I did have a look at the archive of mails relating to the jsp-interest
> group... but nothing worked out.... (depressing).
> Any help in view of this issue will be greatly appreciated.....
>
> Thanks in advance
>
> Cheers
> Raj
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets