问题
Here's what's on console:
(unknown): #2514: An unknown error occurred when fetching the script. [Service Workers]
I am get the above error on my dev console when the service-worker has taken over or skipped waiting and I reload the page with the network turned off. The thing is I get plenty of fetch errors on the console because obviously none of the requests are passing through but there is just one error on SW dev console (Click image):
What is it about?
The error message itself isn't telling much about the issue, like the request it bailed out on or similar.
回答1:
I think you need to add your corresponding https certificate in your browser. for chrome go to setting -> advanced settings -> manage ssl certificates
under authorities tab click import then add your .crt file. restart browser it should work fine.
来源:https://stackoverflow.com/questions/39865126/unknown-2514-an-unknown-error-occurred-when-fetching-the-script-service-w