• jpfrst

    (@jpfrst)


    Hello!

    The PWA plugin stopped working a few WordPress updates ago.

    I’m receiving this error message on the console:

    DOMException: Failed to register a ServiceWorker for scope (‘https://website.com/’) with script (‘https://website.com/wp.serviceworker’): The script has an unsupported MIME type (‘text/html’)

    I have no idea on how to diagnose or correct this error. I’m using the Neve theme. Any help would be appreciated!

Viewing 1 replies (of 1 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    What is the actual URL of your site?

    It’s likely you have a page caching plugin that is caching the /wp.serviceworker response but isn’t taking into account the Content-Type. You can try excluding that path from caching, but better to get the caching plugin to cache the Content-Type as well.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.