Chapter 1 deck Chapter 2 deck Chapter 3 deck Chapter 4 deck Chapter 5 deck Chapter 6 deck Chapter 7 deck Chapter 8 deck Chapter 9 deck Chapter 10 deck Chapter 11 deck Chapter 12 deck Chapter 13 deck Chapter 14 deck

HTTP Request Types & Caching

3 slides · use ←/→ or Space to navigate, F for fullscreen.

Reading view

← Back to the full Chapter 8 deck

HTTP Request Types & Caching
Fullscreen for presentation · Print / PDF for a handout
1 / 3
Lesson

HTTP Request Types & Caching

GET vs POST, and how browsers cache responses.

HTTP Request Types & Caching

HTTP Request Types

Also known as request methods. The most popular are get and post, used to retrieve and send client form data to a web server.

GET requestPOST request
Sends form content as part of the URL
Retrieves the appropriate resource from the web server
Limits the query to 1024 characters
Updates the contents of the web server (e.g. posting new messages to a forum)
Has no limit on query length
Not part of the URL and cannot be seen by the user

POST data is sent to a server-side form handler.

HTTP Request Types & Caching

Caching

  • Browsers cache (save on disk) web pages, allowing for quick reloading.
  • They cache responses to GET requests.
  • They do not cache responses to POST requests.