cloudflare / cloudflare/cloudflared
🐛 waitUntil breaks their caching, cache-control ignored by cf
Open
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
Assessment
This issue has not been assessed yet.