Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 60ca02e

Browse filesBrowse files
committed
Added support for the immutable directive in the cache-control header
1 parent 2143eff commit 60ca02e
Copy full SHA for 60ca02e

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/Symfony/Component/HttpFoundation/Response.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Response.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ public function setPublic()
623623
/**
624624
* Marks the response as "immutable".
625625
*
626-
* @param bool $immutable Enables or disabled the immutable directive.
626+
* @param bool $immutable Enables or disables the immutable directive.
627627
*
628628
* @return $this
629629
*/
@@ -1021,7 +1021,7 @@ public function setCache(array $options)
10211021
}
10221022

10231023
if (isset($options['immutable'])) {
1024-
$this->setImmutable($options['immutable'] ? true : false);
1024+
$this->setImmutable((bool)$options['immutable']);
10251025
}
10261026

10271027
return $this;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.