HTTP 304
未改变
说明无需再次传输请求的内容,也就是说可以使用缓存的内容。这通常是在一些安全的方法(safe),例如GET
或HEAD
或在请求中附带了头部信息: If-None-Match
或If-Modified-Since
。
If the equivalent 200
OK
response would have included the headers Cache-Control
, Content-Location
, Date
, ETag
, Expires
, and Vary
.
Many developer tools' network panels of browsers create extraneous requests leading to 304
responses, so that access to the local cache is visible to developers.
状态
304 Not Modified
标准
标准 | 标题 |
---|---|
RFC 7232, section 4.1: 304 Not Modified | Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests |
浏览器兼容
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.
No compatibility data found. Please contribute data for "http/status" to the MDN compatibility data repository.