Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP status 301, 302 vs 307, 308 #45

Open
hyesungoh opened this issue Mar 15, 2024 · 0 comments
Open

HTTP status 301, 302 vs 307, 308 #45

hyesungoh opened this issue Mar 15, 2024 · 0 comments

Comments

@hyesungoh
Copy link
Owner

301 Moved Permanently

  • 영구적 리디렉션
  • 브라우저는 이 페이지로 리디렉트하고, 검색 엔진은 해당 리소스로 연결되는 링크를 갱신합니다.

HTTP 301 Moved Permanently 리디렉션 상태 응답 코드는 요청한 리소스가 Location (en-US) 헤더에 주어진 URL로 완전히 옮겨졌다는 것을 나타냅니다.

302 Found

  • 일시적 리디렉션
  • 브라우저는 이 페이지로 리디렉션되지만 검색 엔진은 리소스에 대한 링크를 업데이트하지 않습니다.

307 Temporary Redirect

  • 일시적 리다이렉트
  • Method와 Body를 변경하지 않고 리다이렉트 요청을 하도록 보장

307과 302가 유일하게 다른점은 307은 Method 와 Body 를 변경하지 않고 리다이렉트 요청을 하도록 보장합니다. 302응답으로 인하여 일부 오래된 클라이언트들은 메소드를 GET으로 틀리게 변경하였습니다. GET이 아닌 다른 메소드에 302동작은 웹에서 예상되지 않지만 307 동작은 예상할수 있습니다. GET 요청에 대해서는 동일하게 동작 합니다.

308 Permanent Redirect

  • 영구적 리다이렉트
  • Method와 Body를 변경하지 않고 리다이렉트 요청을 하도록 보장

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant