Flushing cached images...
by "W. Jeffrey Rankin" <jrankin(at)jeffr.net>
|
| Date: |
Mon, 8 Jan 2001 11:46:37 -0500 (EST) |
| To: |
hwg-techniques(at)hwg.org |
| |
todo: View
Thread,
Original
|
|
Hi:
I'm working on an application that dynamically transforms (scaling,
labelling and rotating) TIFF images on a server and then sends the
transformed image back to the user as a PNG for viewing in a browser.
I'm having problems in that since images are cached like anything else,
the transformed image doesn't always appear. This is because the image has
the same filename, so the browser just displays the cached version instead
of the transformed version.
Does anyone know of a reliable way (preferably server-side) to tell the
client browser that the image has changed, and it needs to reload it?
The platform for this particular project is NT Server, Cold Fusion
middleware, with ImageMagick handling the transformations from TIFF to
PNG.
One workaround I've been using is to simply give the image a new name, so
if I have:
exploded_view.tif
and the user tranforms it to 30% size, 90 degree rotation, I name it:
exploded_view3090.png
This works fine, but isn't the most elegant thing in the world.
TIA!
- Jeff
===================================================
Jeff Rankin jrankin(at)jeffr.net
http://www.jeffr.net/
Be Valid To Be Cool
===================================================
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.