[pLog-svn] r695 - in plog/trunk: . class/net/http

oscar at devel.plogworld.net oscar at devel.plogworld.net
Sat Jan 8 17:48:11 GMT 2005


Author: oscar
Date: 2005-01-08 17:48:11 +0000 (Sat, 08 Jan 2005)
New Revision: 695

Modified:
   plog/trunk/admin.php
   plog/trunk/class/net/http/httpcache.class.php
   plog/trunk/index.php
Log:
added a session_cache_limiter('public') just before each call to session_start to allow proxy caches and reverse proxy caches to cache our pages, and header("pragma: public") for the same reason in the HttpCache class.

Modified: plog/trunk/admin.php
===================================================================
--- plog/trunk/admin.php	2005-01-08 17:21:11 UTC (rev 694)
+++ plog/trunk/admin.php	2005-01-08 17:48:11 UTC (rev 695)
@@ -22,6 +22,7 @@
         die();
     }*/
 
+	session_cache_limiter( "public" );
     session_name( "plog_session" );
     session_start();
 

Modified: plog/trunk/class/net/http/httpcache.class.php
===================================================================
--- plog/trunk/class/net/http/httpcache.class.php	2005-01-08 17:21:11 UTC (rev 694)
+++ plog/trunk/class/net/http/httpcache.class.php	2005-01-08 17:48:11 UTC (rev 695)
@@ -148,7 +148,8 @@
 				else $cache='';
 				$cache.='max-age='.floor($cacheSeconds);
 				header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T',time()+$cacheSeconds)); //HTTP/1.0 //rfc2616-sec14.html#sec14.21a
-				header('Cache-Control: '.$cache); //rfc2616-sec14.html#sec14.9				
+				header('Cache-Control: '.$cache); //rfc2616-sec14.html#sec14.9
+				header('Pragma: public');
 				
 				return true;
 			}

Modified: plog/trunk/index.php
===================================================================
--- plog/trunk/index.php	2005-01-08 17:21:11 UTC (rev 694)
+++ plog/trunk/index.php	2005-01-08 17:48:11 UTC (rev 695)
@@ -27,6 +27,7 @@
         die();
     }*/
 
+	session_cache_limiter( "public" );
     session_name( "plog_session" );
     session_start();
 




More information about the pLog-svn mailing list