After loading the page (so the serviceworker is installed), reload the page, and checkout the response of cache.keys() in the console... only contains óne request (the html) and not the javascript module. (if you remove the type-attribute from the script-tag, it works as expected).