note 51521 added to function.header

From: Date: Sat, 02 Apr 2005 15:01:21 +0000
Subject: note 51521 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-87344@lists.php.net to get a copy of this message
Is it possible to call a php script from img src tag and deliver an image in such a way that if any other page of the site seeks the same image, then the query should not be forwarded right up to the web server, rather the browser cache or the public isp cache should process that request for that image file and deliver the cached copy of the same image, reducing load on servers and ample bandwidth everywhere... I checked out hundreds of tutorials on php that discuss something similar, but non of them clearly suggests and provides code-set on what image-headers should be set while delivering the image and what headers should be set for the url seeking those images to be cached so that no such queries are forwarded everytime a page is sought from the server... I'm trying to stop such queries that seek more than 30 template images that are true common on all pages of our web site. My true thanks in advance. Sanjay. ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51521 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51521&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51521&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51521&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51521&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51521&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51521&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#87344) next »