Thursday, February 18th 2021
Domains can now be redirected with a custom status code
You can now select a temporary or permanent status code for Domain Redirects.
There are some subtle differences between these status codes:
- 307 Temporary Redirect: Not cached by client, method and body never changed.
- 302 Found: Not cached by client, method may or may not be changed to GET.
- 308 Permanent Redirect: Cached by client, method and body never changed.
- 301 Moved Permanently: Cached by client, method may or may not be changed to GET.
We recommend using status code 307 or 308 to avoid the ambiguity of non-GET methods, which is necessary when your application needs to redirect a public API.
Check out the documentation as well.