Test CF-Cache-Status header behavior and LogPush integration.
| Operation | CF-Cache-Status | LogPush |
|---|---|---|
cache.match() HIT |
HIT (auto-added by CF) | EdgeResponseStatus=200, CacheCacheStatus=hit |
cache.match() MISS |
N/A (returns undefined) | EdgeResponseStatus=504, CacheCacheStatus=miss |
All Cache API calls have ClientRequestSource=6 (edgeWorkerCacheAPI) in LogPush.
| Action | Description | Link |
|---|---|---|
| clear | Delete test key from cache | Run |
| store | Fetch from httpbin and store in cache | Run |
| check | Check cache headers without consuming body | Run |
| match | Return cache.match() response directly | Run |
| test-miss | Trigger MISS for LogPush verification | Run |
To analyze Cache API traffic in LogPush:
ClientRequestSource = 6CacheCacheStatus = hit vs missTo exclude Cache API traffic (end-users only):
ClientRequestSource = 1 (eyeball)The 504s from MISS are expected - see docs.