Index: ui/file_manager/image_loader/request.js |
diff --git a/ui/file_manager/image_loader/request.js b/ui/file_manager/image_loader/request.js |
index 11fc7c1ec6c158a49245efa3aadbf65871d59b70..f0d9f13cfb9ebc874e14dc109ce5388484e4d33f 100644 |
--- a/ui/file_manager/image_loader/request.js |
+++ b/ui/file_manager/image_loader/request.js |
@@ -273,8 +273,15 @@ AuthorizedXHR.prototype.load = function(url, onSuccess, onFailure) { |
}.bind(this); |
// Do not request a token for local resources, since it is not necessary. |
- if (url.indexOf('filesystem:') === 0) { |
- this.xhr_ = AuthorizedXHR.load_(null, url, onMaybeSuccess, onMaybeFailure); |
+ if (/^filesystem:/.test(url)) { |
+ // The query parameter is workaround for |
+ // crbug.com/379678, which force to obtain the latest contents of the image. |
+ var noCacheUrl = url + '?nocache=' + Date.now(); |
+ this.xhr_ = AuthorizedXHR.load_( |
+ null, |
+ noCacheUrl, |
+ onMaybeSuccess, |
+ onMaybeFailure); |
return; |
} |