Hello, I have a website that shows images off of an ftp server that my computer has set up. What I need to know is how can I force the browser to redownload an image? For instance, my ftp server has a file called: "Welcome.jpg" and every minute the jpg is changed to be something else, but it is still named "Welcome.jpg". When I try to use javascript to set the source of the image, the image isnt' re-downloaded because it has the same path as before. Any ideas as to how I could force the browser to redownload the image instead of looking in its cache? Thanks a lot.

Willy Duitt

03-22-2004, 02:19 AM

This script will add a querry (?) and the UTC time to the end of the image URL.
Resulting in a unique image URL according to the date and time it is downloaded.