If you are using Cloudfront in your Rails app, any new Cloudfront distribution you create after Amazon started to support HTTP/2 will automatically default to supporting HTTP/2 if the browser is capable of taking advantage of it. If you created a Cloudfront distribution before Amazon started to support it, you have to edit the existing configuration and change the selection as shown in the image.