image: fix reload command vs http cache

This commit is contained in:
jean-emmanuel 2019-01-06 20:21:20 +01:00
parent caf610c0c9
commit 57b65d73e4

View file

@ -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()
}
}