and a Day in my Life - cURL · and a Day in my Life April 2018 Fernando Bitti Loureiro...
Transcript of and a Day in my Life - cURL · and a Day in my Life April 2018 Fernando Bitti Loureiro...
![Page 1: and a Day in my Life - cURL · and a Day in my Life April 2018 Fernando Bitti Loureiro fernando@fastly.com fernando.bitti@gmail.com. 1 What you need to know about a CDN Here comes](https://reader033.fdocuments.in/reader033/viewer/2022050408/5f8539d8f3cdc451264a0ffc/html5/thumbnails/1.jpg)
and a Day in my LifeApril 2018Fernando Bitti Loureiro [email protected] [email protected]
![Page 2: and a Day in my Life - cURL · and a Day in my Life April 2018 Fernando Bitti Loureiro fernando@fastly.com fernando.bitti@gmail.com. 1 What you need to know about a CDN Here comes](https://reader033.fdocuments.in/reader033/viewer/2022050408/5f8539d8f3cdc451264a0ffc/html5/thumbnails/2.jpg)
1 What you need to know about a CDN
Here comes a customer request!
Demo
A Day in the Life of a CDN
Sales Engineer
2
3
![Page 3: and a Day in my Life - cURL · and a Day in my Life April 2018 Fernando Bitti Loureiro fernando@fastly.com fernando.bitti@gmail.com. 1 What you need to know about a CDN Here comes](https://reader033.fdocuments.in/reader033/viewer/2022050408/5f8539d8f3cdc451264a0ffc/html5/thumbnails/3.jpg)
CDN review
Browsers
Origin
![Page 4: and a Day in my Life - cURL · and a Day in my Life April 2018 Fernando Bitti Loureiro fernando@fastly.com fernando.bitti@gmail.com. 1 What you need to know about a CDN Here comes](https://reader033.fdocuments.in/reader033/viewer/2022050408/5f8539d8f3cdc451264a0ffc/html5/thumbnails/4.jpg)
CDN review
Browsers
Origin
Cache
![Page 5: and a Day in my Life - cURL · and a Day in my Life April 2018 Fernando Bitti Loureiro fernando@fastly.com fernando.bitti@gmail.com. 1 What you need to know about a CDN Here comes](https://reader033.fdocuments.in/reader033/viewer/2022050408/5f8539d8f3cdc451264a0ffc/html5/thumbnails/5.jpg)
CDN review
Browsers
Origin
Cache
Cache-Control: max-age=60
HTTP 1.1 GET /
![Page 6: and a Day in my Life - cURL · and a Day in my Life April 2018 Fernando Bitti Loureiro fernando@fastly.com fernando.bitti@gmail.com. 1 What you need to know about a CDN Here comes](https://reader033.fdocuments.in/reader033/viewer/2022050408/5f8539d8f3cdc451264a0ffc/html5/thumbnails/6.jpg)
CDN review
Browsers
Origin
Cache
Browsers
Cache
Browsers
Cache
![Page 7: and a Day in my Life - cURL · and a Day in my Life April 2018 Fernando Bitti Loureiro fernando@fastly.com fernando.bitti@gmail.com. 1 What you need to know about a CDN Here comes](https://reader033.fdocuments.in/reader033/viewer/2022050408/5f8539d8f3cdc451264a0ffc/html5/thumbnails/7.jpg)
CDN review
Origin
Cache
Browsers
Cache
Browsers
Cache
Browsers
Cache
![Page 8: and a Day in my Life - cURL · and a Day in my Life April 2018 Fernando Bitti Loureiro fernando@fastly.com fernando.bitti@gmail.com. 1 What you need to know about a CDN Here comes](https://reader033.fdocuments.in/reader033/viewer/2022050408/5f8539d8f3cdc451264a0ffc/html5/thumbnails/8.jpg)
CDN review
BrowsersCache
Origin
![Page 9: and a Day in my Life - cURL · and a Day in my Life April 2018 Fernando Bitti Loureiro fernando@fastly.com fernando.bitti@gmail.com. 1 What you need to know about a CDN Here comes](https://reader033.fdocuments.in/reader033/viewer/2022050408/5f8539d8f3cdc451264a0ffc/html5/thumbnails/9.jpg)
CDN review
BrowsersCache
Origin
2 requests became 4.4 opportunities to modify requests and answers
Request BackendRequest
BackendResponseResponse
![Page 10: and a Day in my Life - cURL · and a Day in my Life April 2018 Fernando Bitti Loureiro fernando@fastly.com fernando.bitti@gmail.com. 1 What you need to know about a CDN Here comes](https://reader033.fdocuments.in/reader033/viewer/2022050408/5f8539d8f3cdc451264a0ffc/html5/thumbnails/10.jpg)
CDN review
BrowsersCache
Origin
![Page 11: and a Day in my Life - cURL · and a Day in my Life April 2018 Fernando Bitti Loureiro fernando@fastly.com fernando.bitti@gmail.com. 1 What you need to know about a CDN Here comes](https://reader033.fdocuments.in/reader033/viewer/2022050408/5f8539d8f3cdc451264a0ffc/html5/thumbnails/11.jpg)
1 What you need to know about a CDN
Here comes a customer request!
Demo
A Day in the Life of a CDN
Sales Engineer
2
3
![Page 12: and a Day in my Life - cURL · and a Day in my Life April 2018 Fernando Bitti Loureiro fernando@fastly.com fernando.bitti@gmail.com. 1 What you need to know about a CDN Here comes](https://reader033.fdocuments.in/reader033/viewer/2022050408/5f8539d8f3cdc451264a0ffc/html5/thumbnails/12.jpg)
Customer Needs
Domain is fernando.fastlydemo.net
The origin is 37.60.251.160
Always cache / internally but send the end user a no-cache directive
Ignore all query strings except “version”
Tell the end user where he is located (this is normally sent to the origin instead)
Never cache wp-admin/
Remove vanity headers
![Page 13: and a Day in my Life - cURL · and a Day in my Life April 2018 Fernando Bitti Loureiro fernando@fastly.com fernando.bitti@gmail.com. 1 What you need to know about a CDN Here comes](https://reader033.fdocuments.in/reader033/viewer/2022050408/5f8539d8f3cdc451264a0ffc/html5/thumbnails/13.jpg)
The customer is a fan of Rick Astley and Beatles, add user response headers to let the user know what he’s never gonna do and what the she needs
Customer Needs
All-You-Need-Is: Love
Never-Gonna: give you uplet you downrun arounddesert youmake you crytell a liehurt you
![Page 14: and a Day in my Life - cURL · and a Day in my Life April 2018 Fernando Bitti Loureiro fernando@fastly.com fernando.bitti@gmail.com. 1 What you need to know about a CDN Here comes](https://reader033.fdocuments.in/reader033/viewer/2022050408/5f8539d8f3cdc451264a0ffc/html5/thumbnails/14.jpg)
1 What you need to know about a CDN
Here comes a customer request!
curl Demo
A Day in the Life of a CDN
Sales Engineer
2
3
![Page 15: and a Day in my Life - cURL · and a Day in my Life April 2018 Fernando Bitti Loureiro fernando@fastly.com fernando.bitti@gmail.com. 1 What you need to know about a CDN Here comes](https://reader033.fdocuments.in/reader033/viewer/2022050408/5f8539d8f3cdc451264a0ffc/html5/thumbnails/15.jpg)
Gracias
![Page 16: and a Day in my Life - cURL · and a Day in my Life April 2018 Fernando Bitti Loureiro fernando@fastly.com fernando.bitti@gmail.com. 1 What you need to know about a CDN Here comes](https://reader033.fdocuments.in/reader033/viewer/2022050408/5f8539d8f3cdc451264a0ffc/html5/thumbnails/16.jpg)
1
2 Organizing Content
The Editorial Battle
Establish Unconsidered Needs
On-Point Executive Messaging
Actionable Analytics
Image Optimization
3
4
5