Mark
Your post wasn't OT, I just thought maybe my reply might of been.
I'll probably need to check for the existence of If-Modified-Since in
the request header then return the 304, so that it downloads the first
time. Then requiring I actually respond with a correctly formatted
Last-Modifed.
I'll probably need to check for the existence of If-Modified-Since in
the request header then return the 304, so that it downloads the first
time. Then requiring I actually respond with a correctly formatted
Last-Modifed.
Yes, by looking at the headers of the browsers request then sending
Very nice thorough article on how web caching works and how it can be used
wisely.
http://www.mnot.net/cache_docs/
Cheers
Mark
--
Mark Stanton
Technical Director
Gruden Pty Ltd
Tel: 9956 6388
Mob: 0410 458 201
Fax: 9956 8433
http://www.gruden.com
Thanks Mark
[OT] though relevant to web caching.
Has anyone been able to convince a browser to cache images that are
served like this
img src=stream.php?/image.jpg alt=image /
Adding various header directives in the response should work, but the
browser always insists on reloading the image.
I really don't think this is OT at all. HTTP is the basis of everything we
do and is very much a web standard.
I think that if you put the following line of code in your stream.php file:
header(HTTP/1.0 304 Not Modified);
it should solve your problem. Use the LiveHTTPHeaders plugin for Firefox