image: fix reload command vs http cache
This commit is contained in:
parent
a835fe634d
commit
843bc0a91d
1 changed files with 3 additions and 2 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue