Unique transformations onerror behavior
The docs mention: https://developers.cloudflare.com/images/pricing/#images-transformed
If I understand correctly,
onerror
flag is supported for url transfomations, but not transformations from within a worker: https://developers.cloudflare.com/images/transform-images/transform-via-url/#onerror
Does this mean an image with the same resizing params (url, width, height, onerror=redirect etc.) called from a /cdn-cgi
url and called from a worker will count as 2 unique transformations? Since the docs above explicitly mention the format
flag is exempted from counting as a unique transformation, but onerror
isn't mentioned.1 Reply
Does this mean an image with the same resizing params (url, width, height, onerror=redirect etc.) called from a /cdn-cgi url and called from a worker will count as 2 unique transformations?You can still set it in a worker, it just doesn't work/do anything. I would assume it's exempt from the unique transformations overall although only the Images team/PM could confirm that, they're active on the community forums: https://community.cloudflare.com/c/developers/images/63