[phplib] Multiple Expires/Cache-Control headers... From: Anthony Rumble (smilie <email protected>)
Date: 04/28/00

I just noticed something..

The code has multiple Cache-Control header lines in session.inc for
IE4..

However.. it seems PHP (at least apache-1.3.12/php-3.0.15) seems to
only print the last one!

Ie..

header("Cache-Control: public");
header("Cache-Control: max-age=" . $this->allowcache_expire * 60);

When you actually look at what is produced from apache...
You will find only the last line.. (Probably because it builds the headers
as an associative array.. so further header calls just overwrites the
previous ones)..

So these extra lines are just totally BOGUS.. and could explain why so
many people are having such troubles with caching..

I've changed mine to consolidate the line.. Sure.. this doesn't work with
IE4.. but.. for my site anyway, there seems to be very few IE4 users
anymore.

Any comments? Is there a way to make PHP emit all of the headers properly?

---
Anthony Rumble
LinuxHelp http://www.LinuxHelp.com.au Phone: 0500 500 368
Direct 02-9712-1799 Mobile 0412-955-042  Fax 02-9712-3977

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>