mirror of
https://github.com/mastodon/mastodon
synced 2025-04-12 00:56:38 +02:00

When storing files in S3, paperclip is configured with a Cache-Control header indicating the file is immutable, however no such header was added when using OpenStack storage. Luckily Paperclip's fog integration makes this trivial, with a simple `fog_file` `Cache-Control` default doing the trick.