Skip to content

Kirby 6.0.0

$responder->toCacheArray()

Converts the response configuration to an array that can safely be cached

$responder->toCacheArray(): array{body: string|null, code: int|null, headers: array, type: string|null}

Return type

array{body: string|null, code: int|null, headers: array<string, string>, type: string|null}

Parent class

Kirby\Cms\Responder