Overview
Cache-Control is the primary header for managing web caching. It consists of various directives that define who can cache a resource, for how long, and under what conditions.
Common Directives
max-age=<seconds>: Specifies the maximum time a resource is considered fresh.no-cache: Forces the browser to revalidate the resource with the server before using it.no-store: Prevents the resource from being cached at all.public/private: Defines if the resource can be cached by shared caches (like CDNs) or only by the user's browser.immutable: Indicates that the resource will never change, allowing the browser to skip revalidation entirely.