If the origin returns a non-image response, does it count toward image resizing requests?

Let’s say the origin returns an HTML page or even 4xx status code. Is this kind of request billed?

4xx are not getting billed, incorrect format - is.

more on formats is here Supported formats and limitations · Cloudflare Image Optimization docs

1 Like

Thanks @asemiglazov for your quick response.
Can I ask a follow up question since we’re already on this?

What if the same resizing request is made, like a brute force attempt but less frequent so that it passes CF check, does it count toward billable usage?

Our users will have access to this image resizing feature, if anyone attempts a brute force against the endpoint, it will be a deal breaker for us. Or is there any way to prevent this?

These is WAF you can set up according to your traffic patterns and expectations Cloudflare Web Application Firewall · Cloudflare Web Application Firewall (WAF) docs

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.