[Vuejs]-Register service worker with correct MIME-Type

0👍

The MIME type of the file downloaded by the browser is set by the server that is serving the file. This is not something you can configure from JavaScript or so but by the server configuration.

How have you deployed the application? Have you setup your own server or are you using something like Surge, Now, Firebase, or some other service?

Then again – sounds very weird that any server would serve your JavaScript (.js) files with that MIME type. Misconfiguration?

Leave a comment