Cloudflare Image Resizing Transform Rule

I am currently trying to integrate Cloudflare image resizing into my application without needing to modify the path of my existing URLs.

I’ve looked through the documentation ( but haven’t been able to implement it successfully.

My current image URLs paths are:


I’ve created a Transform Rule with the following:

Text in Expression Editor:

(http.request.uri.path.extension matches "(jpg)|(jpeg)|(png)|(gif)") and (not (any(http.request.headers["via"][*] contains "image-resizing")))

Text in Path > Rewrite to… > Dynamic:


Image Transformations (and flexible variants) are enabled on my zone file and I am on the Enterprise plan.

Any help would be much appreciated!

This topic was automatically closed after 15 days. New replies are no longer allowed.