Invalidate a cached image in the browser, using an iframe trick.
npm install invalidateInvalidate a resource that is currently cached by the browser, without reloading the current page.
npm install invalidate --save
``javascript``
function avatarChanged (url) {
invalidate(url, function (err) {
if (err) throw err
refreshImages(url)
})
}