I have an image that loads multiple times, each time with a content that will not be reused. for this problem, I found several answers suggesting something
var d = new Date();
buff.src="carrega.php?ver="+d.getTime();
Or with random number.
others suggest:
<meta Http-Equiv="Cache-Control" Content="no-cache">
<meta Http-Equiv="Pragma" Content="no-cache">
<meta Http-Equiv="Expires" Content="0">
<meta Http-Equiv="Pragma-directive: no-cache">
<meta Http-Equiv="Cache-directive: no-cache">
Well, the second solution simply does not work. And if it works it would be for the whole page and I want to disable the cache of a single image.
The first is not a solution. It returns me different images, until then ok. But every time I load, the image gets cached, which is what I want to avoid in order to not load memory usage (many images are loaded during very long usage). I also do not want to have to recommend the user to limit the cache storage space. That would not solve the problem, either.