I have created a captcha which looks like this:
<img src="/cgi-bin/rand.pl" />
The problem is that if someone navigates away from or back to the page with the captcha on it, it doesn’t refresh which makes the captcha invalid (especially if they have already submitted the form before) Is there anyway to force a refresh as I suspect setting the image source with javascript wouldn’t force a refresh either. The only time the image actually is refreshing is if the refresh button on the browser is used. (this isn’t a problem in IE8/7,mozilla on windows XP; I just noticed it on windows 7)
Set the
Expiresheader with the current or a past HTTP datetime stamp to signal that the resource must not be cached. Example using theCGImodule:To create a standard-conforming datetime stamp on your own, use
HTTP::DateorDateTime::Format::HTTP.