Can you copy and format your service worker contents?
In any case, try caching the route and not the file.