Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: HTTP question - file that never changes

  • Subject: Re: HTTP question - file that never changes
  • From: Roy Schestowitz <newsgroups@xxxxxxxxxxxxxxx>
  • Date: Wed, 08 Mar 2006 15:04:10 +0000
  • Newsgroups: alt.html
  • Organization: schestowitz.com / MCC / Manchester University
  • References: <6JqdnV1xyd-bWJPZRVny2g@eclipse.net.uk>
  • Reply-to: newsgroups@xxxxxxxxxxxxxxx
  • User-agent: KNode/0.7.2
__/ [ 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

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index