[Catalyst] HTTP redirect - delayed Firefox
John Napiorkowski
jjn1056 at yahoo.com
Thu Feb 8 21:44:16 GMT 2007
--- Svilen Ivanov <svilen.ivanov at gmail.com> wrote:
> Hi,
>
> I'm experiencing very odd issues when I'm trying to
> make HTTP redirect
> with '$c->res->redirect'.
>
> I use the development server with option "-k - keep
> alive". If I make
> HTTP redirect, Firefox 2.0.0.1 waits exactly 5
> seconds before it loads
> the new location. If I disable the keep alive the
> 5-second delay is
> gone. Konqueror behaves the same way. Internet
> Explorer (surprise,
> surprise) is exact opposite - it doesn't work at
> all w/o keep alive,
> and if the keep alive is enabled, there is no delay.
> Opera works OK w/
> or w/o keep-alive - no delay.
>
> I've read few postings that explains the IE and keep
> alive issues but
> I couldn't explain why FF/Konqueror wait 5 sec
> before executing the
> redirect if keep alive is on.
>
> Any ideas?
I also have this issue. Funny enough if you do a HTTP
303 See Other rather than a HTTP 302 Found you don't
get this problem. HTTP 303 flies. However 302 is
default for Catalyst res->redirect unless you are
explicit.
I believe that when redirecting as a result of a post
that 303 is supposed to be correct, whereas 302 is
used for redirects when the information is merely at a
different location. But I'm not an expert. So 303 is
probably what most of us use redirect for, like when
you click on save in a form and then you want to
redirect the user back to a different page.
I think this is use is because when Firefox sees a 302
it's expecting more info or something and it doesn't
play nice with the build in server. It didn't bother
me enough to dig.
--john
>
> Regards,
> Svi
>
> P.S. I can supply HTTP request/responses captured
> with Ethereal if needed
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo:
> http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive:
>
http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121
More information about the Catalyst
mailing list