RE: how to force browser not to cache image

by "Gary Bonham" <Gary(at)BonhamDesigns.com>

 Date:  Sat, 4 Sep 1999 21:23:29 -0700
 To:  <hwg-basics(at)hwg.org>
 In-Reply-To:  earthlink
  todo: View Thread, Original
The problem as stated was having an image that is dynamically changed
by the server and wanting it to appear on the page and not have the
page simply use the cached image. In BannerForge I got around this
by appending a sequence number to the gif every time we create
a new one, and having the display page, an asp page, use the new gif
name each time. There are ways to supposedly tell the client to not
cache an image, but none seem to work consistently, so changing the
name each time was necesary. The problem is the bookeeping of discarding
the previous file all the time, and keeping the running counter so it
never repeats a previous number that may be in the users cache. When
we had errors where the counter would drop back, we would all of a
sudden get wrong images on the page, since the browser was pulling
them from the cache. This is something that the server application
HAS to control, as it would be hectic indeed if I asked everyone
who came to our site to go into their settings and turn off caching!
Also, we really don't want to defeat caching for things that DON'T
change, just those particular elements that DO change. It would be nice
if there was a way to mark a particular gif to not be cached, but alas
there is no way to do this (that I know of).

Gary
http://www.BannerForge.com


> -----Original Message-----
> From: owner-hwg-basics(at)hwg.org [mailto:owner-hwg-basics(at)hwg.org]On
> Behalf Of Arthur V. Dieli
> Sent: Saturday, September 04, 1999 12:36 PM
> To: hwg basics list
> Subject: Re: how to force browser not to cache image
>
>
> I should think you can force your own browser to not cache by setting
> its cache memory to 0.  It looks like the META tag is a signal to the
> server not to cache.  And I suppose the page author sets that for his
> page.  I'd hate to think that the page author could control the cache of
> the user's machine, even with JavaScript or Java.
> --Art Dieli
>
> Gary Bonham wrote:
> >
> > I tried this a week ago and it didn't seem to work. Any comments?
> >
> > Gary
> >
> > > -----Original Message-----
> > > From: owner-hwg-basics(at)hwg.org [mailto:owner-hwg-basics(at)hwg.org]On
> > > Behalf Of Thomas James Allen
> > > Sent: Friday, September 03, 1999 7:59 PM
> > > To: Ron Shacham
> > > Cc: hwg-basics(at)hwg.org
> > > Subject: Re: how to force browser not to cache image
> > >
> > >
> > > At 12:58 PM 9/3/99 -0500, you wrote:
> > > >What HTML code is
> > > >there for keeping a browser from caching an image?
> > > >
> > > >Thanks,
> > > >Ron
> > > ------
> > > <META Http-Equiv="Pragma" Content="no-cache">
> > >
>
> --
> *==================== Today�s Sicilian Word ====================*
> Sicilian:  timpuna
> Italian:  zolle
> English:  turf, sod
> ����For more Sicilian - Italian vocabulary comparisons link to
> ����my home page at:  http://home.earthlink.net/~artdieli/
> *===============================================================*
>

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA