ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersโ€ข3y agoโ€ข
2 replies
lmtr0

Cloudflare Cache Not Caching

Hello there, good day! I'm wondering If I'm doing something wrong, I've a worker site that returns assets from A storage bucket with the cache flag like this:
const fetchBucketContent = async (path: string, bucket: string): Promise<Response> => {
    return fetch(`https://${bucket}${path}`, {
        cf: {
            cacheEverything: true
        }
    })
}
const fetchBucketContent = async (path: string, bucket: string): Promise<Response> => {
    return fetch(`https://${bucket}${path}`, {
        cf: {
            cacheEverything: true
        }
    })
}


However, when I look at the cloudflare analytics, this is the percentage of cahing I'm getting:

I was testing my site with Webpagetest and GT Metrics multiple times, I want webpagetest and GTMetrics to receive the cahced content and not the worker content. How would I go about that?
image.png
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

My Cache Rule is not caching
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
Cloudflare cache
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
Cache rule not creating expected caching behaviour
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
Hostigner not compatible with Cloudflare Caching?
Cloudflare DevelopersCDCloudflare Developers / general-help
3d ago