I am using the jQuery Magnify plugin. The image doesn't rotate in Chrome unless I press Ctrl+F5.
After rotation I tried window.location.reload(true)
, random query string on JS files, using the following meta
tags in the document:
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
On click rotate button:
$.post("" + document.getElementById('site_url').value + "project_management/rotate_image", {
src: $image[0].src,
angle: angle,
direction: direction
}).done(function(data) {
window.location.reload(true);
});
The image rotates on the backend but is not shown on the screen after reloading.