Caching a specific URL with query string

Hi I use a PHP site which has a controller called mobile controller.

I want all requests sent to it be cached 100% via cloudflare. At present all requests to the controller is sent to the server.

The controller can be accessed via the below URL like below.

https://www.shoperies.com/index.php/something/motive/*
https://www.shoperies.com/index.php/something/motive//

motive is the name of the controller.

it takes all parameters either by having ?* or // format. Requests are sent both via via get and post method.

Please help me in setting the right parameters to set in cloudflare for caching all outputs on the same completely.