Expensive, use Dropzone ( link ) on my site and the thumbnails (which are on the server) return when deleted using Chrome. In IE and Firefox work perfectly.
After much redo code, testing solutions, etc., I discovered that by pressing the Shift + F5 keys Chrome recharges the server photos instead of the cache and the thumbnails are deleted. Only F5 does not work. The javascript equivalent would be location.reload (true) but this does not work in Chrome. Below the code:
// Recupera imagens
con1.open("GET", arqpath1, true);
con1.send();
...
// Apaga arquivo no servidor
this.on("removedfile", function(file) {
$.ajax({
url: "delfotoprodedit.asp",
method: "POST",
data: {
arqname: file.name
},
success: function(data) {
document.location.reload(true);
}
});
});
I have already tested some examples to reload the page to no avail: link
See more examples: Chrome (59.0.3071.115): window.location.reload (true) reloads from cache, not server as it should ...
Would anyone have a solution? Thanks