CacheControl.custom()

Add a custom directive token (non-standard / extra).

Usage

Source

CacheControl.custom(directive)

This is intended for directives not covered by helper methods.

Examples

.custom(“foo”) .custom(“foo=bar”)

Safety: - Rejects commas (would break tokenization). - Rejects CR/LF (header-splitting). - Validates the directive name as an RFC token.