8000 Fixed fabbot.io issues · symfony/symfony@11a3699 · GitHub
[go: up one dir, main page]

Skip to content

Commit 11a3699

Browse files
committed
Fixed fabbot.io issues
1 parent 629fcf1 commit 11a3699

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Symfony/Component/HttpKernel/HttpCache/ResponseCacheStrategy.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
*
66
* (c) Fabien Potencier <fabien@symfony.com>
77< 9703 /td>
*
8-
* This code is partially based on the Rack-Cache library by Ryan Tomayko,
9-
* which is released under the MIT license.
10-
* (based on commit 02d2b48d75bcb63cf1c0c7149c077ad256542801)
11-
*
128
* For the full copyright and license information, please view the LICENSE
139
* file that was distributed with this source code.
1410
*/
@@ -173,7 +169,7 @@ private function willMakeFinalResponseUncacheable(Response $response)
173169

174170
// Last-Modified and Etag headers cannot be merged, they render the response uncacheable
175171
// by default (except if the response also has max-age etc.).
176-
if (in_array($response->getStatusCode(), array(200, 203, 300, 301, 410))
172+
if (\in_array($response->getStatusCode(), array(200, 203, 300, 301, 410))
177173
&& null === $response->getLastModified()
178174
&& null === $response->getEtag()
179175
) {

0 commit comments

Comments
 (0)
0