All stores built on the Store Framework include a native Service Worker. This service worker is integral to enabling your store to operate as a Progressive Web App (PWA), enhancing user experience by providing features like offline navigation, faster loading times, and the ability to add the store to the home screen.
While the native service worker greatly enhances the functionality of your store, you may find it necessary to integrate third-party services that also require their own service workers. Since a website can only support a single active service worker, conflicts may arise. In such cases, you have the option to deactivate the VTEX IO native service worker, allowing you to implement your desired third-party solution successfully.
Instructions
-
Access the Admin.
-
Navigate to Store Settings > Storefront > Store.
-
Click the
Advanced
tab. -
Enable the
Service Worker
option to deactivate the native service worker. -
Save your changes.
Once you save the changes, the VTEX Service Worker will be automatically disabled, allowing your store to function with the third-party service worker.