You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But can't seem to find a clear solution, or one sanctioned from Rails/Active Storage itself, so I believe this is still a bug. I'm looking for confirmation that this will be resolved in Rails 6 release (hopefully), or feedback from the team. Thanks!
Steps to reproduce
Setup basic rails project with Active storage. Set asset host to Cloudfront CDN (tried pointing CDN to S3 and project, or simply back to project itself). Unfortunately, Active Storage ignores asset_host and pulls directly from S3 regardless.
When using a CDN to host files for site, specifically those user uploaded through Active Storage, Active Storage should run requests through CDN first when making download requests. Uploads should be through Active Storage current pathways, but once asset_host is set, downloads should flow through CDN.
Currently, everything flows through Active Storage when trying to download/retrieve blobs, resulting in slow load times
Rails version: 5.2.2
Ruby version: 2.5.1
The text was updated successfully, but these errors were encountered:
Thank you so much for the issue but we don't take feature request on the issue tracker. We recommend you to try to implement the feature and send us a pull request or if you are in doubt if the feature will be accepts ask in Rails Core mailing list for feedback.