mozilla / wp-offline-shell

This WordPress plugin provides a method for caching theme assets via a service worker.
Other
53 stars 16 forks source link

Service Worker Lingers When it Shouldn't #63

Closed darkwing closed 8 years ago

darkwing commented 8 years ago

To repeat:

  1. Activate and enable the plugin, check debug so messages will display in the console
  2. Add some files to cache, save
  3. Visit a page on the site so items get cached
  4. Disable the 'enable' checkbox in admin
  5. Visit page on the site -- you'll still see the debug messages. WTF
  6. Deactivate the plugin in admin
  7. Visit page on the site -- you'll still see the debug messages. WTF
    • I only have my plugin enabled/disabled at a given time.
darkwing commented 8 years ago

Side note the SW address 404s if my plugin is activated by not enabled so I've opened this:

https://github.com/darkwing/wp-sw-cache/compare/disabled-sw?expand=1

...although somehow the SW is still service files when not enabled... WTF?

delapuente commented 8 years ago

Disable the 'enable' checkbox in admin Visit page on the site -- you'll still see the debug messages. WTF

Probably because the former SW was still active. Try to reload after step 5.