Hello I use Ajax to reload a captcha (image-verification) area. A php file creates the image. I call getting the php file onClick from a Reload button. However, it sends the command to php file, but returns a cached value i guess, because it loads the same code again. If i refresh whole page (which i am using Java, not to ) it reloads the code too. How can i prevent this? I added a header sent in my php file for no-cache, did not work. I try to call the php file with different random variables like image.php?1301231 image.php?123111 Did not work too.
I have made a simple echo of current time in my php file, ajax gathers it good, reloads with new time. But image is echoed previously as cached.