protected function computeCacheControlValue(): string
{ if (!
$this->cacheControl
) { if ($this->
has('Last-Modified'
) ||
$this->
has('Expires'
)) { return 'private, must-revalidate'; // allows for heuristic expiration (RFC 7234 Section 4.2.2) in the case of "Last-Modified"
} // conservative by default
return 'no-cache, private';
} $header =
$this->
getCacheControlHeader();
if (isset($this->cacheControl
['public'
]) ||
isset($this->cacheControl
['private'
])) { return $header;
} // public if s-maxage is defined, private otherwise
if (!
isset($this->cacheControl
['s-maxage'
])) { return $header.', private';
} return $header;
}