At Jamglue we've always had the Apache rewrite rules set up to
serve up our rails /public directory without hitting the mongrel
servers, but we recently went one further and pushed all the static
files there onto Amazon's S3 service.
As a result, most page loads hit our server only once, which is
pretty remarkable. Everything else stays between the client and
Amazon's data centers, which is fine with us.
Here's how you can do the same.