function Response::ensureIEOverSSLCompatibility
Checks if we need to remove Cache-Control for SSL encrypted downloads when using IE < 9.
@final
See also
http://support.microsoft.com/kb/323308
1 call to Response::ensureIEOverSSLCompatibility()
- Response::prepare in vendor/
symfony/ http-foundation/ Response.php - Prepares the Response before it is sent to the client.
File
-
vendor/
symfony/ http-foundation/ Response.php, line 1307
Class
- Response
- Response represents an HTTP response.
Namespace
Symfony\Component\HttpFoundationCode
protected function ensureIEOverSSLCompatibility(Request $request) : void {
if (false !== stripos($this->headers
->get('Content-Disposition') ?? '', 'attachment') && 1 == preg_match('/MSIE (.*?);/i', $request->server
->get('HTTP_USER_AGENT') ?? '', $match) && true === $request->isSecure()) {
if ((int) preg_replace('/(MSIE )(.*?);/', '$2', $match[0]) < 9) {
$this->headers
->remove('Cache-Control');
}
}
}