Afficher un message
Vieux 08/02/2005, 11h12   #2
Nick Kew
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: HTML -vs- image cache question

fochie wrote:

> Greetings,
>
> Not sure if this the "right" place to ask ...
>
> I would like to be able to serve up HTML pages, that contain 100's of
> links to images on my server and have the images ALWAYS cached by the
> client/proxy server/etc. but NEVER the HTML page itself.


No chance. You can't force or prevent cacheing unless you control
the Client. The best you can do is to set headers that agents will
honour *unless* configured to do otherwise (e.g. browser preferences).

> My HTMLs are updated daily to contain new image links along with
> potentially many of the old links remaining. New links added always use
> new image filenames and the names never reused. The old images are
> removed from the server when the HTML is updated.


OK, what you want is default behaviour in Apache and (AFAIK) other
webservers, provided you don't mess with it. Look up the HTTP
If-Modified-Since header and 304 response for how it works.

--
Nick Kew
  Réponse avec citation
 
Page generated in 0,06215 seconds with 9 queries