Prompt
Why does my CDN not seem to resize images automatically?
Latest observation
Nov 20, 2026
OpenAI APIWeb search: off
A CDN usually doesn’t resize images automatically by default. Most CDNs are designed to cache and deliver files quickly, not transform them unless you’ve explicitly enabled an image-optimization feature.
Common reasons it isn’t resizing:
-
Image resizing isn’t enabled
- Many CDNs require a separate feature/product for image transformation.
- You may need to turn on something like “Image Optimization,” “Image Resize,” or “On-the-fly transformations.”
-
You’re requesting the original file directly
- CDNs typically won’t infer a smaller size from the browser alone.
- You usually need to request a transformed URL, query parameters, or use a special image endpoint.
-
The CDN may only cache, not process
- Basic CDN behavior is: fetch origin file → cache it → serve it faster.
- Unless transformation rules are configured, the image stays unchanged.
-
Transformation rules are missing or incorrect
- Some services need explicit width/height/fit/crop parameters.
- Example pattern:
?w=800?width=800&format=webp/cdn-cgi/image/width=800/your-image.jpg
-
Origin headers or cache settings may interfere
- If your origin sends cache-control or content-type headers incorrectly, the CDN may skip optimization or cache the wrong variant.
-
You may be looking at browser resizing, not actual file resizing
- CSS can make an image display smaller, but the browser still downloads the full-size image unless the CDN or server provides a smaller version.
What to check:
- Does your CDN support image resizing at all?
- Is the feature enabled?
- Are you using the correct transformation URL or query string?
- Are the image format and content-type supported?
- Is the request hitting the CDN version, not the origin directly?
- Are cache rules or signed URLs preventing transformation?
If you want, tell me which CDN you’re using (Cloudflare, CloudFront, Fastly, Akamai, Bunny, etc.) and I can show the exact setup needed.