-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't handle non-app resources in service worker
It seems that once you start handling a request in the service worker, CORS restrictions are applied differently. So we shouldn't handle requests that aren't application resources to be cached. This cleans up the service worker and makes sure that we only handle the requests we are supposed to. This avoid CORS errors reported in a few old issues, as well as those seen in more recent Safari native HLS work. Issue #997 Closes #1256 Closes #1392 Change-Id: I0dff4a1f4f2a47b5f76a13625b673f717ebbd0ba
- Loading branch information
1 parent
7a15c1e
commit 0d5d952
Showing
1 changed file
with
103 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters