avoid browser caching of svg files to enable upload with same name.

This commit is contained in:
Teja 2015-03-28 19:50:56 +01:00
parent 7248a78053
commit 3c32224a48

View file

@ -366,8 +366,7 @@ $(function(){
self._getSVGserveUrl = function(file){
if (file && file["refs"] && file["refs"]["download"]) {
var url = file.refs.download.replace("downloads", "serve");
console.log(url);
var url = file.refs.download.replace("downloads", "serve") +'?'+ Date.now(); // be sure to avoid caching.
return url;
}