Re: trouble with forcing output to be cached

From: Date: Fri, 07 Nov 2003 17:10:29 +0000
Subject: Re: trouble with forcing output to be cached
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-168874@lists.php.net to get a copy of this message
The image is already written to a file. i wrote "..CREATION.." as an example, because there is no difference do you write and read, or create. If you pass something through PHP, it will append it's own header HUH :( .. so not so simple ;[ i guess that it is impossible to find a solution here, but i would be interested in any information about this simple trouble, and maybe request for feature for something like remove_header() function.. Any other ideas :) ? "Pete M" <pmorgan@ukds.net> wrote in message news:20031107121228.1600.qmail@pb1.pair.com... > 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 (#168874) next »