27 Apr '12, 4am

参考

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#coding-...

Tweets

Asset Pipeline for Dummies

rubyflow.com 25 Apr '12, 2pm

Asset Pipeline for Dummies Posted by cavneb on April 25, 2012 — 0 comments Learn how the Asset Pipeline works and why you ...

Upgrading a project from rails 3.0 to 3.1. - th...

guides.rubyonrails.org 28 Apr '12, 8pm

Starting with version 3.1, Rails defaults to concatenating all JavaScript files into one master .js file and all CSS files...

Must Read Muckrake on the Whistleblower Behind the Enbridge Tar Sands Pipeline Spill

Must Read Muckrake on the Whistleblower Behind ...

desmogblog.com 20 Apr '12, 11pm

On a midsummer evening in July of 2010, heavy crude started gushing from a 30-inch pipeline into Talmadge Creek, near Mars...

Google CEO: Android Not a Critical Asset

searchenginewatch.com 21 Apr '12, 3pm

Google's Android system isn't "critical" to the company's success, although it's an "important" part of its future, accord...