I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:
Current behavior
On Safari, if you have service worker registered, when you "Empty Cache" and refresh page, you get an error:

Expected behavior
There should be polyfill that fixes this error.
Minimal reproduction of the problem with instructions
- Register service worker on project
- Open in safari
- Empty cache
- Refresh page
What is the motivation / use case for changing the behavior?
To make service worker workable in Safari
Environment
Angular version: 6.1.9
Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [x] Safari (desktop) version 12.0
- [x] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Node version: 10.10.0
- Platform: Mac
Others: