WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
225290
Safari will use older UA while receiving 301 redirect
https://bugs.webkit.org/show_bug.cgi?id=225290
Summary
Safari will use older UA while receiving 301 redirect
Wen Huang
Reported
2021-05-02 21:58:06 PDT
Created
attachment 427538
[details]
Request-UA-changed Hi, We found that Safari will cache the request header and use it next time but the UA might be the older version. e.g. 14.0.3 Safari is correct UA but somehow will use 14.0.1 Seems if we visited the website before and received the 301 redirect with Safari 14.0.1, the request header will be cached and be used in next time even already upgraded to Safari 14.0.3.
Attachments
Request-UA-changed
(371.40 KB, image/png)
2021-05-02 21:58 PDT
,
Wen Huang
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2021-05-06 18:13:24 PDT
Did you confirm if the old UA is actually sent over HTTP? This seems like maybe it's just reused from the cache, which is not necessarily wrong.
Wen Huang
Comment 2
2021-05-06 19:40:52 PDT
Hi Alex, Yes, We saw the older UA was sent to the server while redirecting http->https. I agree that reusing from cache is not wrong. The problem is Safari version in cache of the actual Safari version that iOS is using of doesn't match. If Safari has already upgraded to the newer version, the cache should clear the older one.
Radar WebKit Bug Importer
Comment 3
2021-05-09 21:59:12 PDT
<
rdar://problem/77727807
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug