logo
GeekFormat

Cache-Control Parser

Cache-Control 分析器

分析快取策略、快取範圍與新鮮度 TTL。也可透過建構器產生可重現的標頭。

分析摘要

Shared caches allowed新鮮度:10m 0sstale-while-revalidate:30s
快取性
Shared caches allowed
新鮮度 TTL
10m 0s
Stale-While-Revalidate
30s
Stale-If-Error
-

建構器

public, max-age=600, stale-while-revalidate=30

JSON 預覽

{
  "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
}