What does stateless mean for HTTP?
- The server stores each earlier request forever
- Each request stands alone unless state is sent with it
- The browser can use HTTP without receiving any responses or status codes
Which set lists meaningful parts of an HTTP request?
- A screen size, pointer position, and cable type
- A method, target, headers, and optional body
- A response status, server rack, and plug shape
What can caching headers decide?
- The price of the server and the user's account
- The colour of the page and the screen brightness
- Whether a stored response may be reused and for how long
A logo loads quickly on repeat visits, but the news text is fetched again. Why can that happen?
- The logo's freshness rules allow longer reuse than the news response
- The server has no remaining copy of the news text
- Cookies prevent browsers from storing the logo response
You log in, then open a second page and remain logged in. How can this work?
- The server memorised every browser screen
- The browser sent a session cookie with the new request
- HTTP changed from independent exchanges to a stored conversation
A cookie can let a stateless HTTP exchange support a logged-in session.
Circle one: True False
An account page arrives with Cache-Control: private, max-age=600. A shared cache may store it and serve it to the next visitor for 600 seconds.
Circle one: True False
A shop keeps each cart on its server, linked to a session cookie. A user clears cookies during shopping and the cart empties. What best explains this?
- The session identifier was removed, so the server lost the cart link
- The cache was cleared, so every stored page lost its layout
- The browser changed HTTP from stateful to stateless