# Disable service worker initializer

**URL:** <https://meta.discourse.org/t/disable-service-worker-initializer/116392>\
**Category:** Development\
**Created:** [April 30, 2019, 3:59am UTC](https://meta.discourse.org/t/disable-service-worker-initializer/116392 "2019-04-30T03:59:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [April 30, 2019, 4:04am UTC](https://meta.discourse.org/t/disable-service-worker-initializer/116392/2 "2019-04-30T04:04:41Z")

</div>

I don’t think we have a “disable service worker” switch, you may be able to swing something in a theme component, it makes sense to have a switch or at least a white list of service worker js files that we never de-register for the sub folder case.

---

_[View the full topic](https://meta.discourse.org/t/disable-service-worker-initializer/116392)._
