By default current Cloudflare Images pricing is counting every cache HIT into images served. By using this proxy we are caching them on the worker side so it won't be showing up as usage for Images.
You need to have a Cloudflare account with Workers enabled.
- Clone
npm install
npm run publish
- (Optional) Set custom domain for your worker (https://developers.cloudflare.com/workers/platform/routing/custom-domains/)
Once setup use your domain of the worker same way as you would use with Images:
https://yourdomain.com/<ACCOUNT_HASH>/<IMAGE_ID>/<VARIANT_NAME>