cloudflare / cloudflare/cloudflared

🐛 waitUntil breaks their caching, cache-control ignored by cf

Open
#1,196 0 comments 0 reactions 0 assignees View on GitHub
Priority: Normal Type: Bug
Dominant language
Go
Stars
15.6k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

Somehow, this causes Cloudflare not to honour Cache-Control headers in Qwik. The answers do not have the cache-hit header.

**Please see**: https://github.com/BuilderIO/qwik/pull/5952 (cache-control ignored by cf)

part of code

```TS
// writing to cache
ctx.waitUntil(
handledResponse.completion.then(() => cache.put(cacheKey, response.clone()))
);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.