I see that CloudFront supports dynamic content.
Could anyone guide how I could go about doing this in Rails? For instance, I have, api.test.com/popular.json which I would like to be served from CloudFront preferably, but probably update itself every few hours.
For static assets, I have been able to do it using Rails asset_host setting. But I have not been able to find enough guides on dynamic content. Any pointers would be useful.