CacheControl
Fluent builder for the Cache-Control HTTP header.
Usage
CacheControl()Default header value: no-store, max-age=0
Notes
* Directive names are case-insensitive; lowercase is the recommended form. * Directives are comma-separated and resilient to repeated calls for the same helper. * Common directives follow a deterministic, canonical order to keep serialized output stable regardless of call order.
Resources: - https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control - https://owasp.org/www-project-secure-headers/#cache-control
Parameter Attributes
header_name: str_directives: dict[str, str | None] = dict()_extras: list[str] = list()_raw_value: str | None = None_default_value: str = HeaderDefaultValue.CACHE_CONTROL.value