invalidate
v0.1.2
Published
Invalidate a cached image in the browser, using an iframe trick.
Downloads
16
Maintainers
Readme
invalidate
Invalidate a resource that is currently cached by the browser, without reloading the current page.
Installation
npm install invalidate --save
Usage
function avatarChanged (url) {
invalidate(url, function (err) {
if (err) throw err
refreshImages(url)
})
}