invalidate

0.1.2 • Public • Published

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

Package Sidebar

Install

npm i invalidate

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • ashaffer88