Menu

1 / 2

Domains can now be redirected with a custom status code - Vercel

Vercel News·Steven Salat·18 days ago
#1y7he8yA
#vercel#cached#client#method#changed
Reading 0:00
15s threshold

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.