This is a common problem with which you need to add an additional identifier that accidentally changes to an image - this way it updates the content.
I worked on checking the captcha image, which should update the image to what it really did on the backend. Before it caches the image, the session value will be different.
So, in HTML, I add a variable that then randomly generates a number and changes the value, so theoretically there is no cache.
Image?a=5291
if static image image.jpg?id=[blah]
JavaScript , id = , , .
<img id=reli src yourimg.jpg?a=5829>
function ChangeLanguage(lang) {
langu="1&lang="+lang;
if (document.getElementById('reli').src.indexOf("country")>0) {
document.getElementById('reli').src=document.getElementById('reli').src.substring(0,document.getElementById('reli').src.indexOf("country")-1);
} else if (document.getElementById('reli').src.indexOf("lang")>0) {
document.getElementById('reli').src=document.getElementById('reli').src.substring(0,document.getElementById('reli').src.indexOf("lang")-1);
}
document.getElementById('reli').src=document.getElementById('reli').src+langu;
}
function ChangeCountry(country){
cc="1&country="+country;
if (document.getElementById('reli').src.indexOf("lang")>0) {
document.getElementById('reli').src=document.getElementById('reli').src.substring(0,document.getElementById('reli').src.indexOf("lang")-1);
}
document.getElementById('reli').src=document.getElementById('reli').src+cc;
}