Zend\Http\Header\CacheControl::addDirective
Add a directive For directives like 'max-age=60', $value = '60' For directives like 'private', use the default $value = true
Signature
public function addDirective(string
$key,
[string|bool
$value = true] )
Parameters
$key
— string$value
— object
Returns
- CacheControl
- - provides the fluent interface