Also add response.setHeader("cache-control", "no-cache,no-store,must-revalidate,post-check=0, pre-check=0");
-----Original Message----- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 12:11 PM To: Tomcat Users List; Karl Ostendorf Subject: RE: Prevent user from retrieving previous page in jsp/servlet response.setDateHeader("Last-Modified", System.currentTimeMillis/()); ^^^ is invalid .. > -----Original Message----- > From: Karl Ostendorf [mailto:[EMAIL PROTECTED] > Sent: 06 December 2004 17:03 > To: Tomcat Users List > Subject: Re: Prevent user from retrieving previous page in jsp/servlet > > > This is an interesting question. I have created a ServletFilter that > appends the following headers to all responses: > > response.setHeader("Cache-Control", "no-cache"); > response.setHeader("Pragma", "no-cache"); > response.setDateHeader("Last-Modified", System.currentTimeMillis/()); > response.setDateHeader("Expires", 0); > > This doesn't work. Firefox will serve the previous page out > of it's cache. > > I'd be interested to know if anyone else has been able to > make this work. > > Karl > > > On Mon, 6 Dec 2004 08:54:29 -0500, Segree, Gareth > <[EMAIL PROTECTED]> wrote: > > I want to invalidate previous page if the back button is pressed. > > The user should not get the previous page if they return to > it pressed. > > > > > > Gareth Segree > > mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > Technical Support Analyst > The Gleaner Company Ltd. > 7 North Street > Kingston > Tel: 922-3400 > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> ------------------------------------------------------- QAS Ltd. Developers of QuickAddress Software <a href="http://www.qas.com">www.qas.com</a> Registered in England: No 2582055 Registered in Australia: No 082 851 474 ------------------------------------------------------- </FONT> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41b492ae186863581515385!