News for hackers. Stuff that matters.
Re:Bulletproof Rails Asset Caching by mrkurt on Friday February 18, 2011 @12:41PM (#2236389)
I get exactly that with CloudFront, a custom origin (with Sprockets), and appropriate HTTP headers. If CloudFront doesn't see a file, it asks Sprockets for it and caches it however long I tell it to.

You can do the same with Varnish if you don't want to use Amazon's CDN. Having run a large site with prebuilt assets for several years, I really enjoy not having to do it anymore.

There are no comments on this comment yet.