Cache-Control Parser
Cache-Control 分析
分析缓存策略、可缓存范围和 freshness TTL,也能反向生成可复制的响应头。
解析摘要
Shared caches allowedfreshness: 10m 0sstale-while-revalidate: 30s
Cacheability
Shared caches allowed
Freshness TTL
10m 0s
Stale-While-Revalidate
30s
Stale-If-Error
-
Builder
public, max-age=600, stale-while-revalidate=30JSON 预览
{
"directives": [
{
"key": "public",
"value": null
},
{
"key": "max-age",
"value": "600"
},
{
"key": "stale-while-revalidate",
"value": "30"
}
],
"warnings": [],
"cacheability": "Shared caches allowed",
"freshnessSeconds": 600,
"staleWhileRevalidateSeconds": 30,
"staleIfErrorSeconds": null
}