Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

A bad HTTP response code (404) was received when fetching the script.

The Possible Solution I have Found -

**Move your `sw.js` file out of any sub folder/directory and put it at the common or public folder.** <br>And the error would go away and the Service Worker would get easily registered. 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #A #bad #HTTP #response #code #received #fetching
ADD COMMENT
Topic
Name
1+4 =