Set cache-control & expires headers to the content served by S3 using attachment_fu or paperclip

Published on

Using attachment_fu with S3 to save and serve data? Set cache-control headers by applying this patch to improve site performance and save some money: If using PaperClip then add headers by adding: Find more info about paperclip s3 options here: