Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

clear-cache

dimitridumont8.8kMIT1.1.0TypeScript support: included

Simple library to clear cache and reload page

clear cache, force refresh, force reload, reload, refresh

readme

clear-cache

Simple library to clear cache and reload after

NPM JavaScript Style Guide

Install

npm install --save clear-cache
yarn install clear-cache

Usage

import {clearCache} from "clear-cache"

clearCache()

Parameters

This is the list of parameters that you should probably know about.

reloadAfterClear

boolean | optional | defaults to: true

Allows triggering a refresh once the cache is cleaned.

License

MIT © dimitridumont