Caching data from different servers depending on url

Is there a way to get cloudflare to cache data from different servers depending on the url.
For example, if www.example.com/aaa was accessed, it would cache data from server A at one IP address.
And if www.example.com/bbb was accessed, it would cache data from server B, at a different IP address.
All this done without doing a redirection.

This would be a job for Workers. A better resource for help with Workers is Cloudflare’s Discord app:

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