--- title: HEAD slug: Web/HTTP/Methods/HEAD tags: - HTTP - HTTP method - Reference translation_of: Web/HTTP/Methods/HEAD ---
HTTP HEAD
메서드는 특정 리소스를 {{httpmethod("GET")}} 메서드로 요청했을 때 돌아올 헤더를 요청합니다.
HEAD
메서드에 대한 응답은 본문을 가져선 안되며, 본문이 존재하더라도 무시해야 합니다. 그러나, {{httpheader("Content-Length")}}처럼 본문 콘텐츠를 설명하는 {{glossary("entity header", "개체 헤더")}}는 포함할 수 있습니다. 이 때, 개체 헤더는 비어있어야 하는 HEAD
의 본문과는 관련이 없고, 대신 {{httpmethod("GET")}} 메서드로 동일한 리소스를 요청했을 때의 본문을 설명합니다.
HEAD
요청의 응답이 캐시했던 이전 {{httpmethod("GET")}} 메서드의 응답을 유효하지 않다고 표시할 경우, 새로운 GET
요청을 생성하지 않더라도 캐시를 무효화합니다.
요청에 본문 존재 | 아니오 |
---|---|
성공 응답에 본문 존재 | 아니오 |
{{Glossary("Safe", "안전함")}} | 예 |
{{Glossary("Idempotent", "멱등성")}} | 예 |
{{Glossary("Cacheable", "캐시 가능")}} | 예 |
HTML 양식에서 사용 가능 | 아니오 |
HEAD /index.html
Specification | Title |
---|---|
{{RFC("7231", "HEAD", "4.3.2")}} | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
{{Compat("http.methods.HEAD")}}