Re: [whatwg/fetch] [WebDriver BiDi] emulate `user-agent` string (PR #1851)

jgraham left a comment (whatwg/fetch#1851)

You can change it in the middle of a fetch, so I think it's true that redirects could see different user agent headers (you could also do the same thing with request interception). 

In general I don't think people are expected to change this often for existing traversables; the typical use case is "set the user agent when creating a top-level traversable and use it for the entire lifetime of that traversable".

So I think I agree that in principle caching the value at the start of a redirect loop is the right thing to do, but in practice it's likely to be a rare edge case.

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

Message ID: <whatwg/fetch/pull/1851/c3299705212@github.com>

Received on Tuesday, 16 September 2025 17:30:38 UTC