I’ve got simple image resizing service. Images are shown at the website with size requested, here’s an example https://i.super.fishing/86/[email protected].
It takes about 1-5 seconds to generate requested size image + delivery time. I don’t want user to wait so long, an Image ID is obviously unique so I’d like to generate it once and cache forever for everyone.
Here’s a Page Rule I use:
i.super.fishing/* Cache Level: Cache Everything, Edge Cache TTL: a month
When I request image from local browser I got such response header
When I test website with https://tools.pingdom.com/ from different locations I got such response header for the same image
Means Cloudflare passes request down to my service, it generates image again and returns it to Cloudflare and then back to user. Why does it do it? The image is already in Cloudflare cache, why doesn’t it serve it directly from there?