Posted by Philip Ronan on 05/16/05 12:56
Kimmo Laine wrote:
> How would I tell a browser that the php generated image it just downloaded
> will never expire and should be cached, so that the browser fetches it only
> when it hasn't got it.
>
> I got only this
> header('HTTP/1.0 304 Not Modified');
>
> Is that enough? What about cache-control or expire-date?
A "304 Not Modified" header is only meaningful in response to a conditional
HTTP request.
Everything you need to know is in here:
<http://www.faqs.org/rfcs/rfc2616.html>
--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Navigation:
[Reply to this message]
|