You are here: Re: say it with headers « PHP Language « IT news, forums, messages
Re: say it with headers

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация