From 843bc0a91de9c69eb4b8ab8916470ce75a7d8c4d Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sun, 6 Jan 2019 20:21:20 +0100 Subject: [PATCH] image: fix reload command vs http cache --- src/client/app/widgets/plots/image.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/app/widgets/plots/image.js b/src/client/app/widgets/plots/image.js index 4114c0b4..279e4d98 100644 --- a/src/client/app/widgets/plots/image.js +++ b/src/client/app/widgets/plots/image.js @@ -64,8 +64,9 @@ module.exports = class Led extends Widget { if (typeof this.value === 'string' && this.value.length) { - cache_query = this.getProp('cache') || this.value.indexOf('base64') != -1 ? - '' : (this.value.indexOf('?') != -1 ? '&' : '?') + Date.now() + if ((s === 'reload' || this.getProp('cache')) && this.value.indexOf('base64') === -1) { + cache_query = (this.value.indexOf('?') != -1 ? '&' : '?') + Date.now() + } }