eukaryote6043
eukaryote6043
CDCloudflare Developers
Created by eukaryote6043 on 6/6/2024 in #workers-help
Default cache with worker binded
Hi, I am trying to use worker to transform an image into base64 string, and I use R2 to store those images, the structure is as follow: * worker router binding to a domain on CF (abc.xyz) * abc.xyz bind to R2 as public access The problem is that after binding the worker to the DNS, the default Cloudflare cache settings, such as CF-Cache-Status, are no longer applied. My goal is to process the request through the worker, return the Base64 string, and have Cloudflare cache this Base64 string. On subsequent requests, the cache should return the Base64 string instead of processing through the worker again. Is there any solution to achieve this to reduce my worker access count?
1 replies