On a website running under IIS 6.1 in Windows ASP.NET, I have a problem to refresh my image after doing a rotation.
I use the following c# functions :
img.RotateFlip(RotateFlipType.Rotate90FlipNone);
img.Save(output, System.Drawing.Imaging.ImageFormat.Jpeg);
The operation works well, when I open the image directly with the file system on the server, the image has completed the 90° rotation but on the site from the server, the image is not refreshed ... (the page is reloaded)
On the other hand, in localhost it works, the image is refreshed!
It is as if the image was blocking on the cache image...
Here's what I tried to force the reload of the image:
I tried to change the URL of the image by adding:
URL + "?no-cache=" + new DateTime().Date.Ticks;
I tried to put meta:
<meta http-equiv="Cache-control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
I even tried with jQuery:
$(function () {
$("img").each(function () {
var d = new Date();
$(this).attr("src", $(this).attr("src")+ "?v=" + d.getTime());
});
});
Nothing works, do you have another solution to offer me?
Thanks