Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.
Discussion options

You must be logged in to vote

Hi @ksnyder,

Vercel will always forward HTTP traffic to HTTPS with a 308 status code (see our documentation).
It's not possible to change the status code to 301 in this case.

The main reason for this is that the client must repeat the same request method (GET, POST) on the target location when redirecting with a 308 status code, whereas this is not necessarily the case for a 301 status code (for this status code it's allowed to change the request method from POST to GET). This may lead to unintended behavior, which is prevented by using the 308 status code.

An excerpt from the RFC 7238:

Note: This status code is similar to 301 (Moved Permanently)
([RFC7231], Section 6.4.2), except that i…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ksnyder
Comment options

@bernardogarza
Comment options

Answer selected by sebastianroming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants