How to add AWS Cloudfront as a Discourse CDN

I’ve already done this. The image of our site is on AWS S3 with cloudfront. I am trying to cache more such as the user_avatar image instead of hitting the server.