A Few Notes On HTTP

6,631 views

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
6,631
On SlideShare
0
From Embeds
0
Number of Embeds
26
Actions
Shares
0
Downloads
72
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

A Few Notes On HTTP

  1. 1. A Few Notes On HTTP It’s How The Web Works, Stupid! Pierre Phaneuf <pphaneuf@gmail.com>
  2. 2. HTTP is core Regular web browser AJAX XML-RPC, SOAP WebDAV, CalDAV, Subversion Atom Publishing Protocol
  3. 3. Caching We all know HTTP caching is important, like flossing, and most of us leave it at that, like flossing —— David Heinemeier Hansson Set the Expires header Use 301 instead of 302 when applicable
  4. 4. But My Site Is Dynamic! Set the Last-Modified header Set the ETag header But beware! Frameworks are silly sometimes Clustering (inode numbers)
  5. 5. Compression It’s easy. It’s good.
  6. 6. Keep Alive Friend or Foe? Memory usage on the server A reverse-proxy can help
  7. 7. AJAX Increased load on servers? Decrease the load, if done right!
  8. 8. Fastest way to handle a request Not handling it! Content distribution network
  9. 9. A Golden Age Static content CGI dynamic content In-process dynamic content (Apache, ISAPI) Out-of-process dynamic content (FastCGI, WSGI)
  10. 10. Tools Firebug’s Net tab How long it took What is cached Dependencies Wireshark (and tcpdump)
  11. 11. Questions? Thank you! Pierre Phaneuf <pphaneuf@gmail.com>

×