Response.Redirect HTTP status code

Vinz picture Vinz · Nov 12, 2009 · Viewed 32.9k times · Source

Why is it that ASP/ASP.NET Response.Redirect uses a HTTP-302 status code ("Moved Temporarily") even though in most cases a HTTP-301 status code ("Moved Permanently") would be more appropriate?

Answer

rick schott picture rick schott · Nov 12, 2009

Responses with status 301 are supposed to be cacheable, and I don't think you want that behavior for most ASP/ASP.NET redirects.

ASP.NET 4.0 is has the RedirectPermanent method for that if needed.