I have created a worker to fetch my image assets from Digital Ocean Spaces through the Cloudflare CDN using the instructions in this support article. Essentially, it is creating a subdomain of my website pointing to my DO Spaces account.
The purpose for doing this was to increase the browser cache expiration on these assets as DO Spaces only provides 7 days of browser cache through their CDN. I initially tried creating a Page Rule to set the browser cache to 1 year but it seems that according to this post the page rule does not work since the sub request is pointing to a different domain. Is there any way to be able to set the browser cache inside the worker code? Thank you!