Open
Bug 696646
Opened 13 years ago
Updated 2 years ago
Cache should be skipped when redirect loop is detected
Categories
(Core :: Networking: Cache, defect, P3)
Core
Networking: Cache
Tracking
()
NEW
People
(Reporter: rowan.collins, Unassigned)
References
Details
(Whiteboard: [necko-backlog])
If a page (A) redirects to another page (B) with status 301, this redirect response is cached. If, at a later date, a change in policy means the old redirect is removed, and B instead redirects to A, the browser will follow both the old and the new redirect, creating a loop. Firefox will detect this loop, and display a "this page is redirecting improperly" error, but the problem may actually be resolved on the server. Would it be possible, on detecting a redirect loop, to suspend the cache, to see if the loop has actually been resolved by the server maintainer. In other words, current behaviour is something like this: Load B -> Load A [from cache] -> Load B [from cache] #LOOP DETECTED The additional step would be: Load B [skip cache] -> Load A [skip cache] #200 SUCCESS (I've written more on this here: http://rwec.co.uk/q/cached-redirs)
Updated•8 years ago
|
Whiteboard: [necko-backlog]
Comment 2•7 years ago
|
||
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P1
Comment 3•7 years ago
|
||
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: P1 → P3
Updated•5 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 4•5 years ago
|
||
I can confirm this.
I encountered this with a single-sign-on system. A server issues a 301 redirect to the single-sign-on system, then the SSO system redirects back to the original server after authenticating...but firefox has the 301 redirect cached, so it redirects right back to the SSO system. Disabling the cache (using the checkbox on the network console) forces Firefox to actually make the second request to the server, and get back a non-redirect.
The original server really shouldn't use a 301 redirect for this, but nonetheless, Firefox ought to handle this case.
Note that Chrome works on the same site.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•