[pLog-svn] r3787 - plog/trunk/class/view/admin

Mark Wu markplace at gmail.com
Mon Jul 24 17:08:43 GMT 2006


You if have proxy server in front of  lifetype to cache the page content

And you click any admin url like /summary.php?op=editPosts , you will get a
login page.

After, you logined, and you click the  /summary.php?op=editPosts url , you
will get the login page again ...

Becase the proxy server cache this page.

So, we better add no-cache header here to avoid this problem.

Mark

> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net 
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Jon Daley
> Sent: Tuesday, July 25, 2006 1:04 AM
> To: plog-svn at devel.lifetype.net
> Subject: Re: [pLog-svn] r3787 - plog/trunk/class/view/admin
> 
>  	Why is this needed?
> 
> On Mon, 24 Jul 2006, mark at devel.lifetype.net wrote:
> 
> > Author: mark
> > Date: 2006-07-24 16:22:14 +0000 (Mon, 24 Jul 2006) New 
> Revision: 3787
> >
> > Modified:
> >   plog/trunk/class/view/admin/adminloginview.class.php
> > Log:
> > Add no cache header to avoid proxy cache this page.
> >
> > Modified: plog/trunk/class/view/admin/adminloginview.class.php
> > ===================================================================
> > --- plog/trunk/class/view/admin/adminloginview.class.php	
> 2006-07-24 11:05:01 UTC (rev 3786)
> > +++ plog/trunk/class/view/admin/adminloginview.class.php	
> 2006-07-24 16:22:14 UTC (rev 3787)
> > @@ -25,6 +25,11 @@
> >         function AdminLoginView()
> >         {
> >         	$this->View();
> > +        	// Add the non cache headers to avoid proxy 
> cache this page.
> > +			$this->addHeaderResponse( 
> 'Cache-Control: no-cache, must-revalidate' );
> > +			$this->addHeaderResponse( 
> 'Last-Modified: ' . gmdate( "D, d M Y H:i:s" ) . ' GMT' );
> > +			$this->addHeaderResponse( 'Expires: now' );
> > +			$this->addHeaderResponse( 'Pragma: no-cache' );
> >         }
> >
> >         /**
> >
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://devel.lifetype.net/mailman/listinfo/plog-svn
> >
> 
> --
> Jon Daley
> http://jon.limedaley.com/
> 
> In Carmel, NY, A man can't go outside while wearing a jacket 
> and pants that do not match.
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn



More information about the pLog-svn mailing list