Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

DHH has a solution to this problem that I like: http://gist.github.com/29752

It's rails code, but the concept could be ported to other languages/frameworks.



WOW!!! Why is this ever hitting the ruby process? These are static assets. The decision should be made at the http proxy (apache, nginx) not your ruby proc.


This controls which URLs are included in the dynamic content. It's not serving the actual assets.


hmmm...my mistake. ;) thanks




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: