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

mark at devel.lifetype.net mark at devel.lifetype.net
Mon Jul 24 16:22:15 GMT 2006


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' );
         }
 
         /**



More information about the pLog-svn mailing list