HTTP Protocol and Web Fundamentals Questions
Application-layer HTTP semantics that underpin API behavior: methods, status codes, request/response headers, content negotiation, caching (ETags, Cache-Control), cookies, connection reuse, and HTTP/1.1 vs. HTTP/2 vs. HTTP/3 differences. Includes TLS/HTTPS at the request level and how proxies and load balancers affect requests. Foundational knowledge assumed before deeper API topics.
Explain Cross-Origin Resource Sharing (CORS) and why browsers enforce it for web clients. Describe the role of Access-Control-Allow-Origin, Access-Control-Allow-Headers, and OPTIONS preflight requests, and outline a safe CORS configuration for a public API that serves browsers and for a strictly internal API.
Design how to stream large dataset responses over HTTP so clients can start processing quickly and handle slow consumers or disconnects. Compare chunked transfer encoding, server-sent events, HTTP/2 streaming, and resumable downloads. Explain implementation details for applying backpressure and resuming where a client left off.
Explain content negotiation for supporting multiple response formats such as JSON and Protobuf in an API. Describe how Accept and Content-Type headers interact with caching, with CDNs and with backward compatibility when introducing a new format.
Explain how HTTP caching works for REST APIs. Cover Cache-Control directives (public/private, max-age, no-cache), ETag/If-None-Match, Last-Modified/If-Modified-Since, and when to return 304 Not Modified. Describe differences between caching public vs private (user-specific) resources.
That is every published HTTP Protocol and Web Fundamentals question for Software Engineer so far. Browse the other topics in this category, or practice this one interactively.