Re: trouble with forcing output to be cached

From: Date: Fri, 07 Nov 2003 12:11:09 +0000
Subject: Re: trouble with forcing output to be cached
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-168831@lists.php.net to get a copy of this message
This posting has made me think.. Problem is server side because the script executes to create the image and the script runs every time.. Try writing out the image to a file and then send that to the browser
psuedo code if image NOT exists
create it write to file embed file pete Ilja Polivanov wrote:
Hallo all, I would like to force PHP generated images to cache on client-side. just for reduce traffic and speed of pageloading. The problem is that PHP adds some headers by default, They are: Cache-Control : no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma : no-cache :) it is possible to rewite Cache-Control header with "private" ar "public" values. bet Pragma do not have positive value :) so i found that i cant set Empty header("Pragma: "); :) and it works :) except one browser - Opera :). i know that it is Operas problem, but is there any idea to absolutely remove response header ? or block PHP to add its own headers ? -- Ilja Polivanovas


« previous php.general (#168831) next »