Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForbidsStoring ¶ added in v1.3.3
ForbidsStoring - Reports whether the response directives forbid a shared cache from storing the response:
- no-store (RFC 9111 §5.2.2.5);
- private, qualified or not (§5.2.2.7): a qualified private="Field" would allow storing the response minus those fields, but a full-page cache doesn't strip headers, so it's treated as unqualified private;
- no-cache (§5.2.2.4): the RFC allows storing it if always revalidated; this cache doesn't revalidate, so it's never stored (stricter, safe).
func GetTTLFromCacheControl ¶
GetTTLFromCacheControl - Retrieves TTL value from Cache-Control header.
func ParseCacheControl ¶ added in v1.3.3
ParseCacheControl - Parses every Cache-Control header field into a map of lowercased directive name to its (unquoted) argument, per RFC 9111 §5.2. Multiple fields are combined as one comma-separated list (RFC 9110 §5.3). When a directive is repeated, the first occurrence wins.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.