Posts from 22 March 2013

All Posts from 22 March 2013

Set content expires and cache-control metadata for AWS S3 objects with Ruby

You can set the HTTP Expires and Cache-control headers for S3 bucket objects with the Ruby SDK for AWS. This will help site performance by enabling browsers to cache content which is not updated frequently such as stylesheets, javascript files and images.

This assumes you already have the AWS Ruby SDK installed.

...
*