A look at serving the static assets within your Ruby on Rails application with the CloudFlare CDN. A broad look at the different configuration options and setting it up to serve image, javascript, HTML, and CSS assets.
When multiple files are uploaded with Active Storage, they are typically associated to a single record. In this episode, we take a different approach where each file uploaded should be its own record along with direct uploads.
Cross-Origin Resource Sharing (CORS) is a mechanism that uses additional HTTP headers to tell browsers to give a web application running at one origin, access to selected resources from a different origin.