NagVis / nagvis

Visualization addon for your open source monitoring core
http://nagvis.org/
GNU General Public License v2.0
113 stars 73 forks source link

Fix gadgets not updating due to caching of images #305

Closed gzalo closed 2 years ago

gzalo commented 2 years ago

Not exactly sure why, but innewer versions of Chrome, part of the gadget refresh mechanism is broken.

When an image gadget should be updated but it doesn't change its URL (i.e, if there has been a change in the status text) it should also trigger an image reload, but Chrome seems to think that the image is the same (even if it has headers to avoid being stored in cache) and thus it doesn't even try to load the image again.

This is really annoying when creating gadgets that use other mechanisms to grab the status summary from services (e.g, using livestatus behind the scenes), as the images won't update unless the real status or perfdata changes.

This patch should ensure that images are always reloaded when the refresh conditions apply.

LarsMichelsen commented 2 years ago

Thanks for your contribution :+1: