Device-Memory
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
语法
http
Device-Memory: <number>
指令
示例
服务器需要先发送包含 Device-Memory
的 Accept-CH
响应标头,来选择接收 Device-Memory
请求标头。
http
Accept-CH: Device-Memory
接下来客户端发送的请求则可能会包含 Device-Memory
请求头:
http
Device-Memory: 1
规范
Specification |
---|
Device Memory # iana-device-memory |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Device-Memory request header |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on 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.
参见
-
利用用户代理客户端提示改善用户隐私并提升开发者体验(developer.chrome.google.cn)
- 设备内存 API
Navigator.deviceMemory
WorkerNavigator.deviceMemory
-
设备客户端提示
Accept-CH