[pLog-svn] r2316 - plog/branches/plog-1.0.2/class/net/http

jondaley at devel.plogworld.net jondaley at devel.plogworld.net
Thu Jul 14 04:12:28 GMT 2005


Author: jondaley
Date: 2005-07-14 04:12:27 +0000 (Thu, 14 Jul 2005)
New Revision: 2316

Modified:
   plog/branches/plog-1.0.2/class/net/http/httpcache.class.php
Log:
Internet explorer doesn't send a correct header.  Since we recently started supporting the 304 response better, I was getting interesting 500 internal server errors without this fix.  After fixing it, I see that the author has also changed his code, so I am going to get his code too.  His code also supports sessions, ie. noticing if the session info changed, which might work well for the plugins that don't work due to caching issues!

Modified: plog/branches/plog-1.0.2/class/net/http/httpcache.class.php
===================================================================
--- plog/branches/plog-1.0.2/class/net/http/httpcache.class.php	2005-07-14 00:11:25 UTC (rev 2315)
+++ plog/branches/plog-1.0.2/class/net/http/httpcache.class.php	2005-07-14 04:12:27 UTC (rev 2316)
@@ -106,7 +106,7 @@
 			if ($is304&&isset($SERVER['HTTP_IF_MODIFIED_SINCE']))
 			{//rfc2616-sec14.html#sec14.25 //rfc1945.txt
 				$nbCond++;
-				$dateCacheClient=$SERVER['HTTP_IF_MODIFIED_SINCE'];
+				$dateCacheClient=strtok($SERVER['HTTP_IF_MODIFIED_SINCE'], ";");
 				$is304=($dateCacheClient==$dateLastModif);
 			}
 			if ($is304&&isset($SERVER['HTTP_IF_NONE_MATCH']))




More information about the pLog-svn mailing list