By egenesky
via css.dzone.com
Published: Jan 27 2012 / 11:11
We’d rather not serve static assets from Heroku because it requires checking them into source control. And we’d rather not add a web server that we have to maintain – too much infrastructure when multiplied by the number of developers. The solution is, as usual, to monkey-patch extend rails. We’re going to tell our Rails application to serve a compressed file if the browser includes the right headers by rendering an URL to the compressed version.



Add your comment