What are HTTP caching headers?
IntermediateConceptHTTP, TLS & Certificates
Answer
Cache-Control (max-age, s-maxage, no-store, no-cache, private, public, immutable), ETag and Last-Modified with conditional requests (If-None-Match, If-Modified-Since) answered by 304, and Vary which declares which request headers create separate cache entries.
Static assets with hashed filenames: Cache-Control: public, max-age=31536000, immutable. HTML: short max-age or no-cache with ETag. no-cache still stores, it only forces revalidation.
More on HTTP, TLS & Certificates
What is the structure of an HTTP request and response?BeginnerWhich HTTP status code classes and codes should every DevOps engineer know?BeginnerWhat are the common HTTP methods and which are idempotent?BeginnerWhat changed between HTTP/1.1, HTTP/2 and HTTP/3?IntermediateHow does QUIC differ from TCP+TLS?AdvancedWhat are HTTP keep-alive and connection reuse, and why do they matter?Advanced