I created a Cloudfront distribution with API Gateway as the origin in behaviors I disabled caching
and it works fine but is not passing the query string param