© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•2y ago
krizh

Reading a 5 MB file from Worker

I am new to cloudflare workers . I am trying to read a 2 MB csv file from R2 and return some columns from that file . For each request I dont want to read the entire file. I want them to read it once per worker so that it can reuse the same read contents . Is it possible to achieve that ? I am able to access R2 using env variable which I dont want to do it for every request? How can I do that?
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

Reading a worker's compatibility date
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
deployed worker.js differs from local file
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Workern to worker fetch 1042
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3mo ago
403 from a fetch request from a Worker
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3mo ago