⚡ This is the AMP version of this page. View full version

HTTP protocol

Published: 3/21/2026 | Updated: 8/28/2025

Headers: types and roles

Header principles

Methods and semantics

Idempotency overview

MethodIdempotent?Notes
GETYesRepeating reads should not change state
POSTNoTypically creates new resources or triggers side effects
PUTYesComplete replacement yields same final state on repeats
PATCHUsually NoSemantics vary; partial updates may not be idempotent
DELETEYesDeleting again keeps state unchanged (resource remains absent)

CORS basics

Simple request flow

Preflight (OPTIONS) flow

https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request

Status codes: categories

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status

Caching essentials

https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Caching

In the response of the first request you will receive these two headers

In the next request and response these header will be send and the following status code will be received

This is good but in production setting these things should be implemented by the server explicitly and if the server misses to update the eTag then the client will continue to use the cached version so its better to use a client side caching like react query etc.

Compression

Persistent connections

Multipart and chunked

TLS and HTTPS

Demo takeaways

Practical guidance

Time-indexed outline (from ToC)