Re: [whatwg/fetch] redirects and etag/if-none-match (Issue #1770)

> it's not clear where the Etags in them were obtained: is it from a stored response from B, or from resA?

This is the order of operations:
1. You visit A. The response contains an `Etag` header and a `Location` header that points to B. The response has a redirection status code.
2. You get redirected to B. The response from B doesn't matter in this case.
3. You visit A again. There's no `If-None-Match` header in the request, even though the earlier response from A had an `Etag` header.

So the question here is whether it's appropriate for subsequent requests to A to contain the header since a previous response had an ETag, even though the status code is a redirect.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1770#issuecomment-2309302136
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/1770/2309302136@github.com>

Received on Monday, 26 August 2024 04:41:56 UTC