hello. I currently run a service called aivy.run.
I’m using Cloudflare Images with this service and have questions about the behavior of Edge caching and delivery counts.
Will the images saved in Cloudflare Images be added to the number of deliveries even if the Edge cache hits?
Currently, this service has attracted about 4,000 new users in 5 days, and the number of distributions has exceeded 400,000. About 30 images are displayed on the top page.
use google translate
Thank you for your reply. understood.
If you don’t mind, please let me know, what can I do to reduce the number of deliveries? If it is cached in the browser, will it not be added to the number of deliveries?
yes, browser cache does prevents sending request if max-age is not yet passed.
for imagedeliver.net we now set max-age to 2 days.
if you want to set it for much longer, you’d need to use custom domains
Serve images from custom domains · Cloudflare Image Optimization docs and adjust cache-control for entire zone or use cache rules
I immediately tried to use CacheRules, but it didn’t work.
The expected behavior is to cache all images with URLs starting with
/cdn-cgi/imagedelivery/4eWf7363M0RSc_aOtzOp2A/post.image for one month.
But max-age still shows 2 days.
What should I fix?
This topic was automatically closed after 15 days. New replies are no longer allowed.