mirror of https://github.com/mastodon/mastodon
Set a specific S3 expiration time so that files can be cached
parent
80c44ed9c1
commit
24e692b0cf
@ -1,5 +1,5 @@
|
||||
object @media
|
||||
attribute :id, :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)) }
|
||||
node(:text_url) { |media| medium_url(media) }
|
||||
|
@ -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)) }
|
||||
|
Loading…
Reference in New Issue