On 9/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Just a fundamentals type question.  When should I use web.redirect and
> when should I use web.seeother?
>
> What are the differences?  How do they affect caching?

web.redirect is HTTP 301, which means "the thing you're looking for
has moved and is now permanently at this other location".
web.seeother is HTTP 303, which means "the result of your request is
at this other URL", which is a temporary kind of redirect.  The major
practical difference is that the result of a 301 should be cached by
clients, but 303 shouldn't.  You can find more complete information in
the standard [1].  Of course, as always, the various browsers may not
implement these status codes correctly.

[1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

-- 
Gary
http://blog.extracheese.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to