Skip to content
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

Clarify retry semantics w.r.t. HTTP auth and redirects #12

Open
cfredric opened this issue Jun 5, 2024 · 0 comments
Open

Clarify retry semantics w.r.t. HTTP auth and redirects #12

cfredric opened this issue Jun 5, 2024 · 0 comments

Comments

@cfredric
Copy link
Collaborator

cfredric commented Jun 5, 2024

Since the Activate-Storage-Access: retry header can be provided on any HTTP response, it's possible to provide it on a response that would otherwise be considered an HTTP redirect (3xx w/ Location) or HTTP auth challenge (401 w/ WWW-Authenticate). We should therefore be explicit about how the retry is handled relative to both auth and redirects.

Idea

Redirects

In order to allow servers to achieve any kind of fallback behavior in clients that do not support Storage Access Headers, the browser should handle Activate-Storage-Access: retry before handling redirects. That way, a server can respond with a 3xx redirect and include the retry token, and know that some browsers will retry the request (with unpartitioned cookies), and some browsers will follow the redirect.

Auth

Auth is slightly more sensitive, due to the possibility of auth responses from proxies. A proxy may respond with an auth challenge (and include the retry token), but in such a case, we want to honor the auth semantics before retrying the request. So, the browser should handle auth challenges before looking for the retry token.

If these semantics seem reasonable to folks, I'll include them in the eventual spec for this proposal.

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

No branches or pull requests

1 participant