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 |
浏览器兼容性
BCD tables only load in the browser
参见
-
利用用户代理客户端提示改善用户隐私并提升开发者体验(developer.chrome.google.cn)
- 设备内存 API
Navigator.deviceMemory
WorkerNavigator.deviceMemory
-
设备客户端提示
Accept-CH