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:[EMAIL PROTECTED] > Sent: Friday, October 24, 2003 6:40 AM > > To: [EMAIL 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 [EMAIL PROTECTED] with body: "signoff JSP- > > INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set 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 [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set 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