You are here: Re: HTTP question - file that never changes « HTML « IT news, forums, messages
Re: HTTP question - file that never changes

Posted by Roy Schestowitz on 03/08/06 17:04

__/ [ Jim Higson ] on Wednesday 08 March 2006 11:51 \__

> I couldn't find an alt.http. Ah well...
>
> I'm working on a server app, which makes resources with the creation time
> in the URL, so they are guarantied never to change once put up.
>
> Because the resource for a given URL never changes, browser cache is always
> safe to use and there is no need to revalidate. What are the best HTTP
> header(s) to use to indicate this, and how should they be set in Apache?

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

See Section 14.9

To prevent caching, for example, HTTP headers or HTML headers should contain

,----[ Code ]
| Pragma: no-cache
| Cache-Control: no-cache
`----

Also see: http://www.i18nguy.com/markup/metatags.html

Apache specifics at: comp.infosystems.www.servers.unix

To debug, use Firefox with the Live Headers extension.

Hope it helps,

Roy

--
Roy S. Schestowitz
http://Schestowitz.com | SuSE Linux | PGP-Key: 0x74572E8E
2:55pm up 7:32, 7 users, load average: 0.29, 0.54, 0.51
http://iuron.com - next generation of search paradigms

 

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

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