Firefox doesnt reload images with the same url till refresh.
$("#a").click(function(){$("#img").attr("src","img.php?id=3");});
<img id="img" src="img.php?id=3">
//the two line above are in the same html page.And when the html page is loaded
// in the browser, i open a new tab and go to the php page that includes
//the line below.
mysql_query("update images set data=$data where id=3");//changing the image here
then i go back to the html page and click #a, in firefox the old image is shown so it doesnt ask mysql if the image with id=2 is changed or not unless the html page is refreshed.But in chrome the new,changed image is shown.it goes and asks mysql again ,doesn't care if the url is still same.
i want chrome to behave like firefox.Tried to set expire,last modified etc. headers for no caching but it worked in a different way.as far as i sensed it is not caching what im looking for.Anyways, this is a really important issue for me i would appreciate any help.