[Rails-core] [Feature][ActiveStorage] add option for proxying files to allow CDN caching

2018-11-02 Thread Jonathan Fleckenstein
ActiveStorage should give users the option to proxy files. This would allow files to be cached by a CDN (image load times for my application went from 500+ms to 50ms) 🚀. Something along the lines of this is what I'm proposing: # frozen_string_literal: true module ActiveStorage class BlobsCont

Re: [Rails-core] [Feature][ActiveStorage] add option for proxying files to allow CDN caching

2018-11-02 Thread Jonathan Fleckenstein
c S3 > or GCS bucket. > > On Fri, Nov 2, 2018 at 10:17 PM Jonathan Fleckenstein > wrote: > >> ActiveStorage should give users the option to proxy files. This would >> allow files to be cached by a CDN (image load times for my application went >> from 500+ms to 5

Re: [Rails-core] [Feature][ActiveStorage] add option for proxying files to allow CDN caching

2018-11-02 Thread Jonathan Fleckenstein
2, 2018 at 11:29 PM George Claghorn wrote: > I’m okay with adding proxy support in general, but a global setting seems > less than ideal (unless it’s paired with a way to override it on a per-file > basis). > > On Fri, Nov 2, 2018 at 11:22 PM Jonathan Fleckenstein < > jonfle

Re: [Rails-core] [Feature][ActiveStorage] add option for proxying files to allow CDN caching

2019-01-15 Thread Jonathan Fleckenstein
Hello, if George or somebody else has time to review this pr https://github.com/rails/rails/pull/34477 it would be greatly appreciated. On Friday, November 2, 2018 at 11:38:54 PM UTC-4, Jonathan Fleckenstein wrote: > > Global with individual override would be perfect! I’ll try to pu