diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-04 12:58:35 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-04 12:58:35 +0100 |
commit | 24e692b0cf1e6b2c3f1f209bebb39f0f9a97eb20 (patch) | |
tree | db50329a328b4841b1f71d908079c99eccb6d48e /app/views/api/v1/statuses | |
parent | 80c44ed9c19855d494ab26011dca0f6fbc644d0c (diff) |
Set a specific S3 expiration time so that files can be cached
Diffstat (limited to 'app/views/api/v1/statuses')
-rw-r--r-- | app/views/api/v1/statuses/_media.rabl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/api/v1/statuses/_media.rabl b/app/views/api/v1/statuses/_media.rabl index 76256ed2c..83b986d51 100644 --- a/app/views/api/v1/statuses/_media.rabl +++ b/app/views/api/v1/statuses/_media.rabl @@ -1,4 +1,4 @@ attributes :id, :remote_url, :type -node(:url) { |media| full_asset_url(media.file.expiring_url(3600, :original)) } -node(:preview_url) { |media| full_asset_url(media.file.expiring_url(3600, :small)) } +node(:url) { |media| full_asset_url(media.file.expiring_url(s3_expiry, :original)) } +node(:preview_url) { |media| full_asset_url(media.file.expiring_url(s3_expiry, :small)) } |