UNPKG

sharyn

Version:

Combines all the other packages under one.

12 lines (9 loc) 263 B
// @flow const purgeCache = async () => { if (caches && caches.keys && caches.delete) { const cacheKeys = await caches.keys() await Promise.all(cacheKeys.map(key => caches.delete(key))) window.location.reload(true) } } export default purgeCache