Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
CDN FOR YOUR RAILS ASSETS @edgarjs Sunday, June 9, 13
Slide 2
Slide 2 text
STATIC FILES .js .css .png .jpg .gif .html .txt, etc... Sunday, June 9, 13
Slide 3
Slide 3 text
WWW WORLD wide web Sunday, June 9, 13
Slide 4
Slide 4 text
LATENCY wait... time Sunday, June 9, 13
Slide 5
Slide 5 text
Sunday, June 9, 13
Slide 6
Slide 6 text
STAY CLOSE to your friends, and closer to your users Sunday, June 9, 13
Slide 7
Slide 7 text
Sunday, June 9, 13
Slide 8
Slide 8 text
3RD PARTY OR DIY Amazon CloudFront, CloudFlare, Rackspace Sunday, June 9, 13
Slide 9
Slide 9 text
Sunday, June 9, 13
Slide 10
Slide 10 text
HELPERS all the time Sunday, June 9, 13
Slide 11
Slide 11 text
link_to image_tag asset_path Sunday, June 9, 13
Slide 12
Slide 12 text
DEVELOPMENT <%= image_tag ‘hello.png’ %>
Sunday, June 9, 13
Slide 13
Slide 13 text
PRODUCTION <%= image_tag ‘hello.png’ %>
Sunday, June 9, 13
Slide 14
Slide 14 text
FOR THE ROAD... Sunday, June 9, 13
Slide 15
Slide 15 text
PERSISTENT CONNECTIONS to the server Sunday, June 9, 13
Slide 16
Slide 16 text
HTTP/1.1 RFC [8.1.4] [...]a single-user client should not maintain more than 2 connections with any server or proxy[...] Sunday, June 9, 13
Slide 17
Slide 17 text
Browser HTTP/1.1 IE 6,7 2 IE 8 6 Firefox 2 2 Firefox 3 6 Safari 3,4 4 Chrome 1,2 6 Chrome 3 4 Chrome 4+ 6 iPhone 2 4 iPhone 3 6 iPhone 4 4 Opera 9.63,10.00a 4 Opera 10.51+ 8 Sunday, June 9, 13
Slide 18
Slide 18 text
assets0.example.com assets1.example.com assets2.example.com assets3.example.com Sunday, June 9, 13