Force reload of image

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Force reload of image

Post by shiznatix »

Couldnt think of the correct forum so i posted here!

I have a captcha image at certain places on my site but the problem is that sometimes the image won't reload and thus will display the old captcha image. Is there any way to make it not send the 'Use browser catch' header for that specific image?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Add a completely random query string to it. The sha1() of the current time, perhaps.
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

thanks much, works perfect
Post Reply