Content Distribution Flashcards
HTTP Request Line
Method (verb, POST HEAD etc.), URL, Version
Common HTTP headers
Referrer, User Agent
HTTP response status line
httpversion, response code, location , server, Allow, content-encoding, content-length, last modified
HTTP 100s
Information
HTTP 200s
Success
HTTP 300s
Move, redirect
HTTP 400s
Error 404 file not found
HTTP 500s
Server Error
How many TCP connection for request and response in early HTTP
1
Problem with Multiple short lived TCP connections
3-way handshake, slow start, servers in TIME_WAIT
Solution for the One TCP connection problem
Persistent Connections
What are presistent connections
Multiple request/response on a single TCP connection (multiplexed), Delimiters indicate the end of request, Content length
TIME_WAIT
he timeout in TIME_WAIT is just an amount of time after which we can safely assume that if the other end didn’t send anything, then it’s because he received the final ACK and closed the connection.
What is pipelining in persistent Connections
Client send request as soon as it encounters a reference object
Where can Caching occure
Client can cache, networks can cache and servers can cache
CDN
Content Distribution network
How does 304 relate to cache?
stands for NOT MODIFIED. The client should use the locally cached version.
Can DNS return near by servers
Yes, dig show this info