I'm able to register a service worker successfully but when I try a simple console log I get the following result - [dev tools screenshot](https://i.stack.imgur.com/fuT5l.png)

It looks like some kind of routing error but I don't know how to fix it. 

my code looks like this

offerings.js file

```
if ('serviceWorker' in navigator) {
    // Register a service worker hosted at the root of the
    // site using a more restrictive scope.
    navigator.serviceWorker.register('/static/js/sw.js').then(function() {
        console.log('Service worker registration succeeded:');
    }).catch(function() {
        console.log('Service worker registration failed:');
    });
} else {
    console.log('Service workers are not supported.');
}

```

sw.js file

```
console.log('Hello')

```