纯浏览器本地运算 · 零数据上报
HTTP Cache-Control 新鲜度计算器(RFC 9111)
HTTP Cache-Control Freshness Calculator (RFC 9111)解析响应头 Cache-Control、Age、Date、Expires,按 RFC 9111 计算新鲜度寿命、corrected current age、剩余新鲜时间与 fresh/stale/revalidate 结论,并标注冲突与未知指令。
加载中…
关于此工具与使用指南
HTTP Cache-Control 新鲜度计算器是一款纯浏览器本地工具:粘贴响应头即可解析全部 Cache-Control 指令,按 RFC 9111 的优先级(s-maxage → max-age → Expires−Date → 启发式)计算新鲜度寿命,结合 Age 与 Date 求 corrected current age,给出 fresh、stale、no-cache 协商验证或 no-store 禁止存储的明确结论。
核心特性
- ✓完整解析 public/private/no-cache/no-store/max-age/s-maxage/must-revalidate/immutable/stale-while-revalidate 等指令,未知指令保留并标记
- ✓RFC 9111 corrected current age:Age 头、表观年龄与驻留时间取大
- ✓新鲜度寿命三级回退:s-maxage、max-age、Expires 减 Date,缺失时明确标注启发式而非臆测
- ✓冲突提示:no-cache 与 max-age 共存、private 与 s-maxage 共存等逐条说明
- ✓协商缓存提示:检测 ETag / Last-Modified,说明过期后的条件请求路径