Edit
↰
Home
↑
http
↑
Env
↑
Response
↻
Response::setCacheControl
↲
★ Changelog
↲
Response::__construct
↲
Response::__invoke
↲
Response::isCachedByEtag
↲
Response::isCachedByLastModified
↲
Response::send
↲
Response::setContentDisposition
↲
Response::setContentEncoding
↲
Response::setContentType
↲
Response::setCookie
↲
Response::setEnvRequest
↲
Response::setEtag
↲
Response::setLastModified
↲
Response::setThrottleRate
#
http\Env\Response
http\Env\Response::setCacheControl
(
string
$cache_control
)
Make suggestions to the client how it should cache the response.
Params:
#
string
$cache_control
#
(A) "Cache-Control" header value(s).
Returns:
#
http\Env\Response
,
self
.
Throws:
#
http\Exception\InvalidArgumentException
Show Comments from Github Discussions