20 Mar '12, 9pm

Ruby on Rails Guides: Asset Pipeline

Not all caches will reliably cache content where the filename only differs by query parameters . Steve Souders recommends , “…avoiding a querystring for cacheable resources”. He found that in this case 5-20% of requests will not be cached. Query strings in particular do not work at all with some CDNs for cache invalidation. The file name can change between nodes in multi-server environments. The default query string in Rails 2.x is based on the modification time of the files. When assets are deployed to a cluster, there is no guarantee that the timestamps will be the same, resulting in different values being used depending on which server handles the request. Too much cache invalidation When static assets are deployed with each new release of code, the mtime of all these files changes, forcing all remote clients to fetch them again, even when the content of those assets ha...

Full article: http://guides.rubyonrails.org/asset_pipeline.html

Tweets

Understanding Asset and Liability (2)

thefinance.sg 18 Mar '12, 5pm

Understanding Asset and Liability (2) by Createwealth8888 on March 18, 2012 Read? Understanding Asset and Liability This c...

Strategie e pit-stop: due punti positivi in un ...

ferrari.com 19 Mar '12, 2pm

Melbourne, 19 marzo – Non è stato certamente il weekend che tutti i ferraristi – sia gli uomini e le donne che lavorano in...

Keystone XL Pipeline Could Cost More Jobs Than It Creates

Keystone XL Pipeline Could Cost More Jobs Than ...

triplepundit.com 19 Mar '12, 8am

The report points out an alternative to the Keystone XL pipeline: renewable energy. For every $1 million invested in renew...

integrating PHP and Ruby On Rails - Ruby Forum

ruby-forum.com 24 Mar '12, 7am

check out if they have a REST-api and access this API using one of the numerous tools available like ActiveResource or Htt...

#72 Adding an Environment (revised) - RailsCasts:

railscasts.com 18 Mar '12, 10pm

#72 Adding an Environment (revised) Jan 19, 2012 | 4 minutes | Rails comes with three environments: development, test, and...

#303 Publishing a Gem (pro) - RailsCasts:

railscasts.com 18 Mar '12, 10pm

#303 Publishing a Gem Nov 28, 2011 | 11 minutes | Tools In this second part on making a gem, you will learn how to publish...

#301 Extracting a Ruby Gem (pro) - RailsCasts:

railscasts.com 18 Mar '12, 10pm

#301 Extracting a Ruby Gem Nov 21, 2011 | 16 minutes | Plugins , Testing In this episode I show how to extract a Ruby Gem ...