Skip to content

Move 401/407 to HTTP-network-or-cache fetch #363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
annevk opened this issue Aug 10, 2016 · 3 comments
Closed

Move 401/407 to HTTP-network-or-cache fetch #363

annevk opened this issue Aug 10, 2016 · 3 comments

Comments

@annevk
Copy link
Member

annevk commented Aug 10, 2016

And with that I guess the CORS check since this would require passing the CORS flag along.

The reason being that 401/407 responses that cause a subsequent request are purely a network affair. Service workers should not be able to cause that subsequent request and should never get a fetch event for it. The easiest way to guarantee that is by simply making them network-only.

Realized this while going through w3c/ServiceWorker#793.

@jungkees
Copy link
Contributor

One check point is service workers still can return a synthetic response with 401/407. So, it seems HTTP fetch step 3.3.3 should consider that response as a network error?

@annevk
Copy link
Member Author

annevk commented Aug 10, 2016

No, we'd just return it to whoever asked. Let them handle it.

@jungkees
Copy link
Contributor

Agreed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants