We recently decided to put static content for HouseTrip.com Show archive.org snapshot to Amazon Cloudfront for a faster user experience. This happens fully automatically on deploy and is transparent in development. Together with a heavy use of sprites this sped up page load time quite nicely.
These are a couple of the problems you need to solve in order to do this:
Content-Encoding = gzip
HTTP header. You then need to link to this gzipped asset only if the requesting browser actually supports it.We made use of menno's excellent cloudfront_asset_host gem Show archive.org snapshot , which already solves a lot of the issues, but had to make some changes (like proper SSL support), which can be found in our cloudfront_asset_host fork Show archive.org snapshot .