Notes : php-http-304

As I answered by e-mail: yes, it is possible to include this script into a GPL project. The only constraint is to leave the credits and the license at the top of the file.

2005-11-06T20:48:08+00:00@GMT+01:00 x1-??? (DK)

I want to include this script into my GPL'ed CMS Software
Is this possible?

2005-11-06T18:34:03+00:00@GMT+01:00 194.97.???.??? (DE)

After discussion, the patch proposed in the previous comment is not needed.

2005-08-25T14:19:53+00:00@GMT+02:00 ??? (DK)

Thanks for the great script. Here is a patch that we use.
~/www/class/net/http>svn diff -r2319:2320 httpcache.class.php 3:52am
Index: httpcache.class.php
--- httpcache.class.php (revision 2319)
+++ httpcache.class.php (revision 2320)
@@ -146,6 +146,12 @@
header('HTTP/1.0 304 Not Modified');
header('Etag: '.$etagServer);
+ if ($cachePrivacy==0) $cache='private, ';
+ elseif ($cachePrivacy==2) $cache='public, ';
+ 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
2005-07-14T07:51:30+00:00@GMT-04:00 ??? (US)

As of version 1.6, there is a basic support for sessions. In order to use this library with sessions, it is required to prevent automatic session headers by disabling session.cache_limiter in php.ini and/or by calling session_cache_limiter(''); before starting the session.

2005-04-03T01:15:50+00:00@GMT+02:00 x1-??? (DK)

But what should i do when the session is started before calling httpConditional? PHP will send "no cache" headers and there's no way to override session_cache_limiter because session already started :(

2004-08-07T15:42:34+00:00@GMT+04:00 host-??? (RU)

See also: cgi_buffer -

2004-07-27T06:42:55+00:00@GMT+02:00 ??? (FR)