Service worker: The script has an unsupported MIME type ('text/html')

I wonder if the service worker can make use of local storage and load certified data from cache if their hashes didn’t change. That will significantly speed up HTML5 apps when “Add to Homescreen” on mobile phones.