mi-cache-reload
v1.0.2
Published
cache clear or reload the cache file
Downloads
5
Readme
Cache Reload
Description
Installation
$ npm install mi-cache-reload
How to Use
import cacheReload from "mi-cache-reload"
Call below function in your main.js OR index.js
cacheReload()
Option (Optional)
cacheReload({
cacheReloadServiceWorker: true, //reload new cache after cache clear
reload: true, //reload page after cache clear
})
Add script in package.json
"generate-meta-version": "node ./node_modules/mi-cache-reload/meta.js",
"prebuild": "npm run generate-meta-version",
"prebuild:staging": "npm run generate-meta-version",
"prebuild:production": "npm run generate-meta-version"
License
MIT
Copyright © 2019 Mindinvetory