Do not autoplay videos, display play button instead. Use expiring links when using S3. Do not keep originals
for avatars/headers, resize avatars down to 120x120 instead of 300x300. Set cache headers on S3 stuff, also make it private (aka only accessible via expiring links to prevent hotlinking)master
parent
290ffb63cd
commit
80c44ed9c1
@ -1,5 +1,5 @@ |
||||
object @media |
||||
attribute :id, :type |
||||
node(:url) { |media| full_asset_url(media.file.url) } |
||||
node(:preview_url) { |media| full_asset_url(media.file.url(:small)) } |
||||
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(:text_url) { |media| medium_url(media) } |
||||
|
@ -1,4 +1,4 @@ |
||||
attributes :id, :remote_url, :type |
||||
|
||||
node(:url) { |media| full_asset_url(media.file.url) } |
||||
node(:preview_url) { |media| full_asset_url(media.file.url(:small)) } |
||||
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)) } |
||||
|
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 681 B |
Loading…
Reference in new issue