Re: [PHPLIB-DEV] cvs commit (cache-control) From: Padraic Renaghan (padraic <email protected>)
Date: 11/14/99

* Sascha Schumann <sascha <email protected>> [Nov 14 6:58pm]:
> (Sorry if I skip the largest part of your email, but I
> currently don't have the time to dig into it.)
>
> > If PHP gets fixed, then putting the source code back to sending two
> > cache-control lines sounds right to me.
>
> Following RFC 2616, 4.2 Message Headers, multiple
> message-headers with the same field-name are legal, if the
> field-value is defined as a comma-separated list.
>
> That is true for cache-control and numerous other header
> fields.
>
> The PHP group is currently looking into possibilities to make
> PHP behave correctly.

I've setup a test site at http://renaghan.com/cache/ that has one page
setup as public cache, another for private cache, and another as no
cache. The test pages use the lastest cvs version of session.inc which
has multiple cache-control values in a single header field for public
and private settings of $sess->allowcache.

I encourage others to test out their browsers against these pages and
let me/us know the results.

Here is what I have found so far...

Browser PUBLIC.PHP3 PRIVATE.PHP3 NOCACHE.PHP3
---------- --------- --------- -----------
Netscape 4.61
Win95 cached not cached not cached

Nestscape 4.61
RH Linux 6.0 cached not cached not cached

MSIE 5.0
Win95 cached cached not cached

So far so good. My guess is that the Netscape versions I have tested
are not HTTP 1.1 aware so they are falling back to the Expires header
- in that case public is cached and private isn't cached - this is
correct. The MSIE 5 browser appears to be aware of HTTP 1.1
cache-control headers and is responding correctly.

I'll try NS 4.7 and the latest Opera sometime soon and report the
results.

Based on the results so far, and the current mode of operation of PHP
with respect to multiple headers of the same type, it seems like we
should leave the session.inc code as it stands now in CVS - with
multiple header values in the same header() call.

-- 
Padraic Renaghan /pad-rik ren-a-han/ 
<padraic <email protected>>  http://renaghan.com/pcr/
   bookmarker - web based bookmark management GPL software
   phpop - web based POP mail reader GPL software
   clicked and the read - ezine

- PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in the body, not the subject, of your message.