New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HTTP 307 & 308 redirects #2648

Open
GeorgeBailey opened this Issue Jul 14, 2016 · 1 comment

Comments

Projects
None yet
3 participants
@GeorgeBailey

GeorgeBailey commented Jul 14, 2016

Some background

HTTP 301 Moved Permanently is widely support, but converts POST requests to GET, supported since forever
HTTP 303 See Other (aka Moved Temporarily) is the 'subject to change' version of 301, supported since IE4
HTTP 302 Found is what most people use instead of HTTP 303, but 'technically' 302 was incorrectly implemented, so folks should use 303 instead.

Then there's the new ones.

HTTP 307 Temporary Redirect is like 302 or 303 'temporary redirect', except it preserves POST and postdata associated with the request. (isn't that cool!) It was defined in 1999, but I don't know what browsers support it. (IE7+?)
HTTP 308 Permanent Redirect also preserves postdata like a 307, but is marked permanent like a 301. Only introduced in 2012 so the browser support for that is going to be sketchy. see also Wikipedia

Note: Browsers that do not support the given status will display the response body that the server sends. This can be used by developers to a) suggest upgrading the browser, and b) explain that the site has moved.

@GeorgeBailey GeorgeBailey changed the title from Add HTTP 307 redirect to Add HTTP 307 & 308 redirects Jul 14, 2016

@Ugoku

This comment has been minimized.

Show comment
Hide comment
@Ugoku

Ugoku Jul 15, 2016

Contributor

Duplicate of #1830

Contributor

Ugoku commented Jul 15, 2016

Duplicate of #1830

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment