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

Jon Daley plogworld at jon.limedaley.com
Mon Jul 24 17:03:55 GMT 2006


 	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.


More information about the pLog-svn mailing list