When a request for an HTML page responds HTTP 302 Found
(aka 'temporary redirect') FireFox loads the redirect page 'in-place', without keeping the originally opened URL U
in 'back-button history'.
One popular use for 302
(and a correct use of the code, I think) seems to be redirecting to a /cookieAbsent
page, alerting the user that their browser doesn't 'support' (perhaps more likely the user has disabled) cookies.
The consequence of this browser behaviour is that, if the user decides to enable cookies, reloading of course just reloads (the server couldn't send you back, reliably, if it wanted to) /cookieAbsent
which is no good, and the back button goes back to wherever they were prior to opening (whether by hyperlink or typing) the original U
. This would make sense to me for 301 Moved Permanently
(aka 'permanent redirect'), but seems undesirable for 302
, especially when used like this.
If I am implementing a browser - or, perhaps, hoping to report a bug or feature request in an existing one - is this behaviour required by a common specification, or is it simply up to the browser to do as it sees fit?