Re: caching behaviour
Steve Rasmussen (Steve@4secureorders.com)
Tue, 29 Aug 2000 08:45:13 -0600
Marco Kleefman wrote:
...
> My problem is that sometimes the browser displays the wrong picture (picture
> from cache), instead of retrieving the latest one. The picture is generated
> with a Perl/CGI script.
>
Fool all caching by making it a new image, insofar as (all of the)
caching layers are concerned, with the following syntax:
<img src="http://www.yourdomain.com/yourpath/yourgraphic.gif?randomcharsgohere">
As long as randomcharsgohere is a value your cache layers haven't
seen before, you're go around *all* caching layers. I've used
random numbers for that value before, with success.
This works, because all caching layers believe this image URL is entirely new.
Steve
--
Steve Rasmussen <Steve@4SecureOrders.com>
President
Secure Solutions Inc. http://4secureorders.com
"Bad management can produce failure, but only
good technology can yield success."
-- Bertrand Meyer, inventor of the Eiffel language