Resizing images without source URL

Hello community.

Currently we have a image resizer worker to avoid extraorbitant fees of webflow. This works perfectly but its creating another issue.

Normally webflow stores images like this: https://global-assets.com/image.jpg
We transform it to this: https://example.com/cdn-cgi/https://global-assets.com/image.jpg

Because transformed image now contains double slashes our this confuses search engines and causes to drop our SEO page rank.

Is there a way to serve the images after converting like this: https://example.com/cdn-cgi/image.jpg ?

I changed the script but then I got the error that cloudflare worker cannot find the source.
Was this page helpful?