Service worker for extension

Hello.

Could extension has own sw for caching img and etc?
Now have got the error net::ERR_INVALID_RESPONSE