This page was translated from English by the community.Learn more and join the MDN Web Docs community.
HEAD
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
HTTPHEAD 메서드는 특정 리소스를GET 메서드로 요청했을 때 돌아올 헤더를 요청합니다.
HEAD 메서드에 대한 응답은 본문을 가져선 안되며, 본문이 존재하더라도 무시해야 합니다. 그러나,Content-Length처럼 본문 콘텐츠를 설명하는개체 헤더는 포함할 수 있습니다. 이 때, 개체 헤더는 비어있어야 하는HEAD의 본문과는 관련이 없고, 대신GET 메서드로 동일한 리소스를 요청했을 때의 본문을 설명합니다.
HEAD 요청의 응답이 캐시했던 이전GET 메서드의 응답을 유효하지 않다고 표시할 경우, 새로운GET 요청을 생성하지 않더라도 캐시를 무효화합니다.
In this article
구문
HEAD /index.html
명세
| Specification |
|---|
| HTTP Semantics> # HEAD> |