
We use AWS CloudFront as our Content Delivery Network (CDN).
CloudFront helps deliver your website's content (like images, videos, and other static files) quickly and efficiently to users around the world. It works by caching content at various edge locations, which are closer to users, reducing load times and improving performance.
Any assets you add to the public folder are automatically uploaded to an S3 bucket and served through CloudFront, ensuring fast delivery. Optimized images, placed in the optimize folder, are resized and stored in a separate folder in the S3 bucket. For example, optimized/logo.png will generate public/logo/blurred.png and public/logo/original.png, which CloudFront will then deliver to users with the best performance.