Re: [phpOpenTracker-User] Call to log() sends no-cache header?

Jean-Christian Imbeault <[email protected]>
Newsgroups gmane.comp.web.phpopentracker.general
Message-ID <[email protected]>
Sebastian Bergmann wrote:
> Jean-Christian Imbeault wrote:
> 
>>It seems that if I call phpOpenTracker::log() the following header is
>>sent out:
> 
> 
>   That is not correct.
> 
>   The header you mention is sent out for phpOpenTracker::plot() API calls
>   and simple_report/index.php.

You're right. From what I can tell that header is the default header
sent out by PHP. I needed to send out my own header to over-ride that
one. Now that the top of each script I use:

header("Cache-Control: must-revalidate");

$offset = 60 * 60 * 24 * 14;
$t = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT";
header($t);


Jean-Christian Imbeault



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.