We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1df835 commit e89c921Copy full SHA for e89c921
src/Symfony/Component/HttpFoundation/Response.php
@@ -310,9 +310,9 @@ public function prepare(Request $request)
310
}
311
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')) {
314
- $this->headers->set('pragma', 'no-cache');
315
- $this->headers->set('expires', -1);
+ if ('1.0' == $this->getProtocolVersion() && false !== strpos($headers->get('Cache-Control'), 'no-cache')) {
+ $headers->set('pragma', 'no-cache');
+ $headers->set('expires', -1);
316
317
318
$this->ensureIEOverSSLCompatibility($request);
0 commit comments