goldhand / sw-precache-webpack-plugin

Webpack plugin that generates a service worker using sw-precache that will cache webpack's bundles' emitted assets. You can optionally pass sw-precache configuration options to webpack through this plugin.
MIT License
1.44k stars 104 forks source link

How to get rid of the cache and service worker file generated by this plugin? #134

Open flygis opened 6 years ago

flygis commented 6 years ago

webpack version: 1.10.1

sw-precache-webpack-plugin version: 0.11.4

Please tell us about your environment: Windows 10

Browser: [Phantom XX | Chrome XX | Firefox XX | IE XX | Safari XX | Other XX] Any

Current behavior: swPrecacheWebpackPlugin created cache and service worker re-creates itself on browser even when plugin is uninstalled, cache deleted and sw file unregisterd

Expected/desired behavior: I want the cache and the service worker gone..

goldhand commented 6 years ago

Use the chrome developer tools, Application > Clear storage to clear out service worker and cache data. You can also check out the unregister script used in create-react-app.