comparison vendor/symfony/http-foundation/Response.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
308 if ('HTTP/1.0' != $request->server->get('SERVER_PROTOCOL')) { 308 if ('HTTP/1.0' != $request->server->get('SERVER_PROTOCOL')) {
309 $this->setProtocolVersion('1.1'); 309 $this->setProtocolVersion('1.1');
310 } 310 }
311 311
312 // Check if we need to send extra expire info headers 312 // Check if we need to send extra expire info headers
313 if ('1.0' == $this->getProtocolVersion() && false !== strpos($this->headers->get('Cache-Control'), 'no-cache')) { 313 if ('1.0' == $this->getProtocolVersion() && false !== strpos($headers->get('Cache-Control'), 'no-cache')) {
314 $this->headers->set('pragma', 'no-cache'); 314 $headers->set('pragma', 'no-cache');
315 $this->headers->set('expires', -1); 315 $headers->set('expires', -1);
316 } 316 }
317 317
318 $this->ensureIEOverSSLCompatibility($request); 318 $this->ensureIEOverSSLCompatibility($request);
319 319
320 return $this; 320 return $this;