Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Thomas Smith <[email protected]>
  • Loading branch information
gagan-bhullar-tech and bsmth authored Sep 3, 2024
1 parent d400f03 commit 1e0659f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/en-us/web/http/status/301/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ A browser receiving this status will automatically request the resource at the U
Search engines receiving this response will attribute links to the original URL to the redirected resource, passing the {{Glossary("SEO")}} ranking to the new URL.

> [!NOTE]
> The Fetch Standard requires user agents to change the method to GET (if it was originally POST), the HTTP specification permits them to do so.
> Use the `301` code only as a response for {{HTTPMethod("GET")}} or {{HTTPMethod("HEAD")}} methods and use the {{HTTPStatus("308", "308 Permanent Redirect")}} for other methods (typically {{HTTPMethod("POST")}}), as altering the method when handling `308` responses is explicitly prohibited.
> In the [Fetch Standard](https://fetch.spec.whatwg.org/#http-redirect-fetch), when a user agent receives a `301` in response to a {{HTTPMethod("POST")}} request, it uses the {{HTTPMethod("GET")}} method in the subsequent redirection request, as permitted by the HTTP [specification](#specifications).
> To avoid user agents modifying the request, use {{HTTPStatus("308", "308 Permanent Redirect")}} instead, as altering the method after a `308` response is prohibited.
## Status

Expand Down

0 comments on commit 1e0659f

Please sign in to comment.