So I’ve run into a problem. The CMS I use allows specification width and height values in the url for an image and if you do it htaccess redirects to a php file which serves the resized version of the image instead of the normal sized one. (It is an internal redirect which serves proper image headers, as far as I know)
Only problem is that cloudflare doesn’t seem to cache these images and I’m not sure why.
Take the following images as an example. The first one is a url directly to the image in question. The second one is a url to a resized version of the image by PHP. Note how much slower the second one loads as cloudflare doesn’t seem to cache it. (even though the file size is far smaller)
I’m grateful for any direction. Backend is not my area of expertise.