Your code is good
First remove all Internet Explorer Temporary Files and then try with the
ones you say don't work.
Sincerely
Erlis Vidal Santos
> -----Original Message-----
> From: Bhavdeep Sharma [mailto:bhsharma@(protected)]
> Sent: Friday, October 24, 2003 6:40 AM
> > To: JSP-INTEREST@(protected)
> > Subject: How to expire page
> >
> > How can I stop browsing caching the JSP pages.
> > Requirement is that if user press the back button on browser then
that
> > page
> > should expire.
> >
> > I tried the following
> >
> > <jsp:useBean id="loginSession" scope="session"
> > type="com.quark.lc.web.LoginSession" />
> > <%
> > response.setContentType(loginSession.getPageContentType());
> > response.setHeader("Cache-Control","no-cache");
> > response.setHeader("Pragma","no-cache");
> > response.setDateHeader ("Expires", -1);
> > %>
> >
> > On page it works and on other not.
> >
> > Thanks
> > Bhavdeep
> >
> >
>
========================================================================
==
> > =
> > To unsubscribe: mailto listserv@(protected)
JSP-
> > INTEREST".
> > For digest: mailto listserv@(protected)
JSP-INTEREST
> > DIGEST".
> >
> > Some relevant archives, FAQs and Forums on JSPs can be found at:
> >
> > http://java.sun.com/products/jsp
> > http://archives.java.sun.com/jsp-interest.html
> > http://forums.java.sun.com
> > http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto listserv@(protected)".
For digest: mailto listserv@(protected)".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com