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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php