Hi,
I’m currently evaluating Cache Reserve; my test is a single ~8Mb image, which is being dynamically resized by Image Resizing using the following URL format:
https://img.mytestdomain.com/cdn-cgi/image/w=1234,f=auto/img/hills.jpg
I’m then just manually requesting that a bunch of times in a browser, at various random intervals.
I then have a Cache Rule set up to make that asset eligible for Cache Reserve:
So as far as I understand it—although it’s not made very clear at all in any docs I can find—when I make the first request to that URL, Cloudflare will fetch the original from the origin, do the resize operation, and add both the original and resized versions to Cache Reserve storage; the Edge cache will then look there first for each request.
As you can see from the above, it seems like I’ve mostly set things up correctly, as the image has been stored (1 write operation).
However, despite me requesting the resized image variant hundreds of times, there is no read activity at all.
I understand that the image will be in the Edge cache for 12 hours and hence not hitting Cache Reserve—but even if I purge the base URL (https://img.mytestdomain.com/img/hills.jpg
) and re-request, I see a MISS
as expected, but the Read operations count still stays at 0.
Is there just a long delay before this statistic updates (I’ve seen no change in 24 hours)? Or am I just completely misunderstanding how this works?
Any help would be greatly appreciated!
Thanks,
Mark