cloudflare / cloudflare/workers-sdk

Miniflare sets `CF-Cache-Status` to null on misses

Open
#4,379 3 comments 0 reactions 0 assignees View on GitHub
package:miniflare
Dominant language
TypeScript
Stars
4.5k
Forks
1.5k
Avg merge
3d 8h
Merged PRs (30d)
187

Description

Contrary to cloudflare's behavior, miniflare does not set `CF-Cache-Status` when the cache was a miss.

Cloudflare however returns the header with `MISS`:

```
CF-Cache-Status: miss
```

Contributor guide

Open the contributing guide

Research direction

No file or test is named in the issue. Start by locating Miniflare's handling of CF-Cache-Status for cache misses, then add coverage showing that a miss returns CF-Cache-Status: MISS.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.