# Content delivery networks

**URL:** <https://www.ruby-forum.com/t/content-delivery-networks/161910>\
**Category:** Rails\
**Created:** [March 3, 2009, 7:58pm UTC](https://www.ruby-forum.com/t/content-delivery-networks/161910 "2009-03-03T19:58:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![msojka](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b5a626/32.png) [@msojka](https://www.ruby-forum.com/u/msojka)\
**Post date:** [March 3, 2009, 7:58pm UTC](https://www.ruby-forum.com/t/content-delivery-networks/161910/1 "2009-03-03T19:58:12Z")

</div>

I am authoring an article for Amazon Cloudfront. Are there recommended  
techniques for working with content delivery networks in Rails?

I have seen and used ActionController::Base.asset\_host and am aware of  
the date parameter that Rails can attach to each static image to  
reflect its last modified time.

Are there other build techniques and coding techniques to work well  
with CDNs? For instance, does anyone refer to fixed IDs in code which  
are replaced during a build with the latest and greatest version of an  
asset? If so, is this a rake task?

I’ll do some Googling, but thought I would ask peers, too.

The article will be based on Rails, so will assist the community at  
large when published next month.

Martin
