On Thu, 25 May 2000, Michael Lake wrote:
> Hi All,
>
> I have a cgi script which creates a HTML form and I need to
> do a single forced refresh.
>
> 1. script gets called by user submitting form which
> references a default gif.
> 2. cgi script runs doing some molecular simulations and
> creates a gif of the data
> 3. sends back the same form but with a reference to the new
> gif
>
> Prob is that the browser shows the old gif in the cache.
> Viewing the new gif in public/tmp/ shows the new one is
> there.
>
> If I set <HEAD refresh='10'> that would refresh every 10
> seconds but I only want one refresh.
REFRESH
----------------------------
Hmmmm .... HEAD <REFRESH='10'> is a new one!
Is that available as a W3C standard? Or a vendor specific attribute?
Try this one:
<META http-equiv="Refresh" content=10; URL=http://blah-balh-blah">
Or if you can generate your own HTTP header:
Refresh: 10; URL=http://blah-balh-blah
Hmmm .. why would you want Refresh anyway? If there
are caching problems, Refresh won't help you :-(
CACHING
----------------------------
You can send a "pragma: no-cache" in the header of your GIF:
Content-type: image/gif
Content-length: 12345
Pragma: no-cache
Some browsers and proxies *ignore* the pragma (!)
If your GIF is generated by a CGI and can have a dynamic name,
another way around the caching problem is the following:
<img src="/cgi-bin/mygif-generator?a=XXXXXX">
where XXXXX is some number that keeps changing over time
(like the result return by the time() function).
--
Rick Welykochy || Praxis Services
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text