This page was translated from English by the community. Learn more and join the MDN Web Docs community.
Expires
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월.
Expires 헤더는 응답이 더 이상 신선하지 않다고 판단할 날짜/시간을 포함합니다.
0과 같은, 유효하지 않은 날짜는 과거의 시간을 나타내어 리소스가 이미 만료되었음을 의미합니다.
응답 내에 "max-age" 혹은 "s-max-age" 디렉티브를 지닌 Cache-Control 헤더가 존재할 경우, Expires 헤더는 무시됩니다.
| Header type | Response header |
|---|---|
| Forbidden header name | no |
| CORS-safelisted response-header | yes |
문법
Expires: <http-date>
디렉티브
- <http-date>
-
HTTP-date timestamp.
예제
Expires: 2015年10月21日 07:28:00 GMT
명세
| Specification |
|---|
| HTTP Caching> # field.expires> |
브라우저 호환성
Loading...