4 ms·
I don't agree with the top response's recomendation of using redirects to represent sunsetting of versions. That behaviour breaks POSTing. [1] > Note: When aut
by joaomsa 13y ago
I don't agree with the top response's recomendation of using redirects to represent sunsetting of versions. That behaviour breaks POSTing. [1]
> Note: When automatically redirecting a POST request after
receiving a 301 status code, some existing HTTP/1.0 user agents
will erroneously change it into a GET request.
[1] https://www.ietf.org/rfc/rfc2616.txt https://www.ietf.org/rfc/rfc2616.txt
- dragonwriter 13y agoIt breaks behavior in some misbehaving HTTP/1.0 clients at the time the HTTP/1.1 RFC was written. I'm not sure that that's a signficiant concern now. Still, if the behavior has changed, 301 isn't appropriate for other reasons, and if it hasn't changed, you shouldn't need a redirect at all, just handle requests to the old URL.