| 名称 | Age |
|---|---|
| 作用 | 估算响应已存活时间 |
| 规范 | RFC 9111 §5.1 |
| 计算 | freshness 判断使用 Age + Date 与 max-age 对比 |
判断命中缓存
判断命中缓存
curl -sI https://cdn.example.com/img.png | grep -iE '^(age|cache-control|x-cache)'
# age: 120
# x-cache: HITAge: 0 或缺失通常表示刚回源(MISS);Age 很大说明命中较老的副本,排查「内容不更新」时结合 s-maxage 一起看。