DEV Community

Discussion on: Deploy Rails static assets to CloudFront CDN - during Docker build time

Collapse
 
reiz profile image
Robert Reiz

Hey Raj,
The reason is performance. The Rails server is not optimised to deliver static content. If all your HTML pages point to a CDN, you take away a lot of traffic from your application servers. And as Danny Brown commented, you can update the static assets independently from your APIs.