Serving gzipped CSS and JavaScript from Amazon CloudFront via S3

I’ve been looking for ways of making my site load faster and one way that I’d like to explore is making greater use of Cloudfront. Because Cloudfront was originally not designed as a custom-origin CDN and because it didn’t support gzipping, I have so far been using it to host all my images, which are … Read more

How to choose an AWS profile when using boto3 to connect to CloudFront

I am using the Boto 3 python library, and want to connect to AWS CloudFront. I need to specify the correct AWS Profile (AWS Credentials), but looking at the official documentation, I see no way to specify it. I am initializing the client using the code: client = boto3.client(‘cloudfront’) However, this results in it using … Read more