From c994e95b9f527c70e8df9aded7689f85234e5a16 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 22 Apr 2019 09:44:11 +0200 Subject: [PATCH] image: cache option inverted (#521) --- CHANGELOG.md | 5 +++++ src/client/app/widgets/plots/image.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a342744f..5a1da24a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.45.7 + +- bug fixes + - image: `cache` option inverted + ## 0.45.6 - bug fixes diff --git a/src/client/app/widgets/plots/image.js b/src/client/app/widgets/plots/image.js index 1f99eec0..a8a373c4 100644 --- a/src/client/app/widgets/plots/image.js +++ b/src/client/app/widgets/plots/image.js @@ -66,7 +66,7 @@ module.exports = class Image extends Widget { if (typeof this.value === 'string' && this.value.length) { - if ((s === 'reload' || this.getProp('cache')) && this.value.indexOf('base64') === -1) { + if ((s === 'reload' || !this.getProp('cache')) && this.value.indexOf('base64') === -1) { cache_query = (this.value.indexOf('?') != -1 ? '&' : '?') + Date.now() }