Entered URL in firefox, Firefox remember old redirect and i get the wrong page
Categories
(Core :: Networking: Cache, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox128 | --- | fixed |
People
(Reporter: zero_enna_cfg, Assigned: kershaw)
References
Details
(Whiteboard: [bugday-20140212][necko-triaged][necko-priority-queue])
Attachments
(2 files, 2 obsolete files)
Comment 2•11 years ago
|
||
Comment 3•11 years ago
|
||
Updated•11 years ago
|
| Reporter | ||
Comment 4•11 years ago
|
||
Comment 5•11 years ago
|
||
Comment 6•9 years ago
|
||
Updated•9 years ago
|
Updated•9 years ago
|
Comment 7•9 years ago
|
||
Comment 8•9 years ago
|
||
Comment 9•9 years ago
|
||
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
Comment 13•9 years ago
|
||
Comment 14•9 years ago
|
||
Comment 15•9 years ago
|
||
Comment 16•9 years ago
|
||
Comment 17•9 years ago
|
||
Comment 18•9 years ago
|
||
Comment 19•9 years ago
|
||
Comment 21•9 years ago
|
||
Comment 22•9 years ago
|
||
Comment 23•9 years ago
|
||
Comment 24•9 years ago
|
||
Comment 25•9 years ago
|
||
Comment 26•9 years ago
|
||
Comment 27•9 years ago
|
||
Comment 28•9 years ago
|
||
Updated•9 years ago
|
Comment 29•9 years ago
|
||
Comment 32•9 years ago
|
||
Comment 33•9 years ago
|
||
Comment 34•9 years ago
|
||
Comment 35•9 years ago
|
||
Comment 36•9 years ago
|
||
Comment 37•9 years ago
|
||
Comment 38•9 years ago
|
||
Comment 39•9 years ago
|
||
Updated•9 years ago
|
Comment 40•9 years ago
|
||
Comment 41•9 years ago
|
||
| bugherder | ||
Comment 42•9 years ago
|
||
Comment 43•9 years ago
|
||
Comment 44•9 years ago
|
||
Comment 45•9 years ago
|
||
Comment 46•9 years ago
|
||
Comment 47•9 years ago
|
||
Comment 48•9 years ago
|
||
Comment 49•9 years ago
|
||
Comment 50•9 years ago
|
||
Comment 51•9 years ago
|
||
Comment 52•9 years ago
|
||
Updated•9 years ago
|
Comment 54•9 years ago
|
||
Comment 55•9 years ago
|
||
Comment 56•9 years ago
|
||
Comment 57•8 years ago
|
||
Comment 60•6 years ago
|
||
Let's have a conversation in Q2 about next steps for fixing this. Probably related to network-id ideas.
Comment 61•6 years ago
|
||
Could we simply not cache redirects? I wonder if that would be perceived as a perf regression.
Comment 62•6 years ago
|
||
As I understand, we land at a 40X/5XX response? We could throw away the whole redirect chain from the cache when that happens, so on next navigation to the first (bookmarked) URI in the chain we re-request it. For error pages this may be a valid thing to do.
This is always hard... if the server persists the redirect (301 Moved Permanently) then we respect that. If it changes, it goes against the 'permanency' of the proclaimed redirect.
Comment 63•6 years ago
|
||
:mayhemer, in theory a "permanent" redirect should be permanent, and its permanency should be respected. But we also have the issue of domain squatting; if a squatter sets up a 301 to redirect to their mega spam site, and then a legitimate user of the domain gets control over the domain, any Firefox browser which had attempted to access the domain in the past will not "see" the legitimate site. Having the cached 301 verify the IP address of the A record was my first thought, but in the case of load balancers, reverse proxies, virtual hosts, and content delivery networks, this would break.
It is probably useful to still respect 301 as permanent for the rare use case where it is really meant as a long-term, this-url-will-stop-working-down-the-road kind of thing, but the ability to
- selectively remove permanent redirects from the cache (so users don't have to experience slow load times for all the sites which get flushed from cache, or lose stored permanent redirects for other sites which may no longer be accessible via their pre-redirect URLs),
- have a built-in browser security tool which would say something like "Firefox has a cached redirect for this site to a different URL, but a new site may be available at the old (non-redirected) URL; would you like to Remove the cached redirect, Keep the cached redirect, Update any bookmarks which use the old URL and then remove the cached redirect, or Compare the two sites side-by-side before making a decision?",
- and have an intuitive force-reload behavior (if any network request between the beginning of URL navigation and rendering of the completed page hits the cache, it gets logged in a "cache loading history," and a force-reload will override the cache for everything in the cache loading history before reverting the URL bar to the URL which began the URL navigation, and then restart URL navigation from the address in the URL bar
I also experienced something odd; I had a HTTP/301 set up for domain name of mine, which I had never expected to need to change... and then one day I needed to. The fact that it was using a cached HTTP/301 was not obvious (it's easy enough to find by hitting F12, but do regular users know that?), and the inability to clear it in isolation (I wish CacheViewer was still around!) is unfortunate.
From a scientific perspective, the inability to clear a single cache entry is not ideal, because it means I am potentially changing multiple variables at the same time between observations: e.g., what if the page has a dependency which also has a cached HTTP/301? If I can only remove the top-level HTTP/301 by clearing my entire cache, I might miss the fact that some dependency also has a cached HTTP/301 -- this is something which I would like to be aware of, as it could affect users of my site.
Comment 64•6 years ago
|
||
Oops, I said I experienced something odd without saying what the odd thing was (I don't see a way to edit my comment). I had notice some inconsistent behavior with favicons when accessing /test.php. / on my site used to have a HTTP/301 to another site entirely, with its own favicon, and it seemed like Firefox just simply stopped showing any favicon entirely for a while, but then started showing my site's real favicon when accessing /test.php eventually. But that's just a favicon, not a usability concern... :-)
Updated•4 years ago
|
Comment 67•2 years ago
|
||
The consensus with the team was that we'll consider only using the memory cache for permanent redirects over unencrypted HTTP.
Comment 69•1 year ago
|
||
The severity field for this bug is set to S4. However, the following bug duplicate has higher severity:
- Bug 1843757: S3
:valentin, could you consider increasing the severity of this bug to S3?
For more information, please visit BugBot documentation.
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 70•1 year ago
|
||
Comment 71•1 year ago
|
||
Comment 72•1 year ago
|
||
Backed out for causing high frequency failures on browser_bug968273.js
| Assignee | ||
Comment 73•1 year ago
|
||
(In reply to Aron Cseh from comment #72)
Backed out for causing high frequency failures on browser_bug968273.js
I am working on this.
Comment 74•1 year ago
|
||
Comment 75•1 year ago
|
||
| bugherder | ||
Description
•