Skip to content
This repository has been archived by the owner on Jun 3, 2019. It is now read-only.

Service Worker mime type errors in Chrome (on Heroku) #535

Open
oyeanuj opened this issue Nov 3, 2017 · 0 comments
Open

Service Worker mime type errors in Chrome (on Heroku) #535

oyeanuj opened this issue Nov 3, 2017 · 0 comments

Comments

@oyeanuj
Copy link
Contributor

oyeanuj commented Nov 3, 2017

I set up a deployment of the repo to Heroku, and see the following errors in Chrome:

Uncaught (in promise) DOMException: Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/html').

You can reproduce it here: https://react-universally-test.herokuapp.com/

What is the best way for us to set the MIME Types for sw.js?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant