| 名称 | Accept-Ranges |
|---|---|
| 作用 | 声明是否支持 Range 请求 |
| 规范 | RFC 9110 §14.3 |
| 取值 | bytes / none |
检测断点续传支持
检测断点续传支持
curl -sI https://download.example.com/f.bin | grep -i accept-ranges
# accept-ranges: bytes → 支持续传
# accept-ranges: none → 不支持部分服务器对静态文件返回 bytes,对动态内容返回 none;CDN 中间层可能重写该头,测速软件依据它选择下载策略。