Solar_Http_Response::setNoCache()
public
void
Solar_Http_Response::setNoCache
( bool $flag = true
)
Should the response disable HTTP caching?
Parameters
(bool)
$flag
: When true, disable browser caching.
Returns
(void)
Description
Should the response disable HTTP caching?
When true, the response will send these headers:
Pragma: no-cache Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Expires: 1