We are using kong for proxy , my upstream url is a AWS cloudfront url , something.cloudfront.net.
When I directly hit the cloudfront url on the browser, page load speed is very fast (3 seconds)
But when I have the cloudfront url proxied through kong, the page load speed is super slow (1 minute)
I changed the upstream cloudfront url to the s3 endpoint of the bucket, the page load speed is (15 seconds)
Question - what setting or plugin should I add in kong to proxy pass the cloud front url(compression of object enabled -content-encoding:gzip ) and use cloud front’s functionality for faster page load.
I want to use Kong to proxy our cloudfront url and not have a delay of 1 minute to load the page. Please provide suggestions or fixes on how I can use kong to proxy to cloudfront.
Response header looks like this: