©
This document usesPHP Chinese website manualRelease
If-Modified-Since请求的HTTP标头发出请求的条件:服务器会发送回所请求的资源,用200状态,只有当它已经给定的日期之后被最后修改。如果请求没有被修改,那么响应将是304没有任何主体的;Last-Modified头将包含最后一次修改的日期。不同于If-Unmodified-Since,If-Modified-Since只能与GET或HEAD一起使用。
与组合使用时If-None-Match,将被忽略,除非服务器不支持If-None-Match。
最常见的用例是更新一个没有关联的缓存实体ETag。
|
Header type |
Request header |
|---|---|
|
Forbidden header name |
no |
If-Modified-Since:, : : GMT
GMT
格林威治标准时间。HTTP 日期总是以 GMT 表示,从不以本地时间表示。
If-Modified-Since: Wed, 21 Oct 2015 07:28:00 GMT
|
Specification |
Title |
|---|---|
|
RFC 7232, section 3.3: If-Modified-Since |
Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests |
|
Feature |
Chrome |
Firefox |
Edge |
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) |