Cloudflare Worldedge community field guide

RETROSPECTIVE EDITION / 2024-03

Cache:速度より先に再利用条件を決める

cache policy は key、freshness、bypass、purge を含む correctness contract です。

ISSUE
03 / 32
初回公開
SOURCE CHECK
Archive integrity

edition month は curriculum 上の位置です。本文の初回公開日は 2026-08-10 で、過去の公開・活動記録を装いません。

01 / DECISION

この primitive を選ぶ時

明確な cache key の下で同じ representation を安全に再利用できる response だけを cache します。

02 / ARCHITECTURE

最小で説明可能な path を作る

public / personalized route を分類し、Cache-Control と key input を決め、TTL を延ばす前に bypass と purge を文書化します。

  1. 01contract を定義

    明確な cache key の下で同じ representation を安全に再利用できる response だけを cache します。

  2. 02primitive を一つ追加

    public / personalized route を分類し、Cache-Control と key input を決め、TTL を延ばす前に bypass と purge を文書化します。

  3. 03failure evidence を残す

    rule 前後の cache status、age、vary input、origin load を記録し、purge と bypass を明示的に試します。

03 / REPRODUCE

confidence の前に evidence

rule 前後の cache status、age、vary input、origin load を記録し、purge と bypass を明示的に試します。

curl -sI https://example.com/ | rg "cf-cache-status|cache-control|age"

04 / BOUNDARY

Production boundary

不完全な key で authenticated / user-specific content を cache すると data leak になります。cache miss は origin 容量問題も表面化させます。

05 / FIRST-PARTY SOURCES

一次資料を authoritative に保つ

product behavior、limit、pricing、availability は変わります。実行前に source を再確認してください。

01 / SOURCECloudflare Cachehttps://developers.cloudflare.com/cache/