?
This document uses PHP Chinese website manual Release
Last-Modified
響應(yīng)HTTP報(bào)頭包含在其原始服務(wù)器認(rèn)為該資源的最后修改日期和時(shí)間。它被用作驗(yàn)證器來確定接收或存儲的資源是否相同。不如ETag
標(biāo)題準(zhǔn)確,它是一種回退機(jī)制。包含條件請求If-Modified-Since
或If-Unmodified-Since
標(biāo)題使用此字段。
Header type | Response header |
---|---|
Forbidden header name | no |
CORS-safelisted response-header | yes |
Last-Modified: <day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT
<day-name> “星期一”,“星期二”,“星期三”,“星期四”,“星期五”,“星期六”或“太陽”之一(區(qū)分大小寫)。 “04”或“23”<月>“Jan”,“Feb”,“Mar”,“Apr”,“May”,“Jun”,“Jul”,“Aug”,“Sep”,“十進(jìn)制“,”十一月“,”十二月“(區(qū)分大小寫)<year> 4位數(shù)年份編號,例如”1990“或”2016“。<小時(shí)> 2位數(shù)小時(shí)編號,例如”09“或”23“分鐘> 2位數(shù)分鐘數(shù),例如“04”或“59”。<秒> 2位數(shù)秒數(shù),例如“04”或“59”。GMT
格林威治標(biāo)準(zhǔn)時(shí)間。HTTP 日期總是以 GMT 表示,從不以本地時(shí)間表示。
Last-Modified: Wed, 21 Oct 2015 07:28:00 GMT
Specification | Title |
---|---|
RFC 7232, section 2.2: Last-Modified | Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests |
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
Feature | Android | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
---|---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
If-Modified-Since
If-Unmodified-Since
Etag