X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fhttp-foundation%2FRedirectResponse.php;h=cb1c58e8999a56a62a35a45f0fd2616d8389a445;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=5a775ad159f3a89b7900bb8ec13df4fac8b2a0d0;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/symfony/http-foundation/RedirectResponse.php b/vendor/symfony/http-foundation/RedirectResponse.php index 5a775ad15..cb1c58e89 100644 --- a/vendor/symfony/http-foundation/RedirectResponse.php +++ b/vendor/symfony/http-foundation/RedirectResponse.php @@ -41,6 +41,10 @@ class RedirectResponse extends Response if (!$this->isRedirect()) { throw new \InvalidArgumentException(sprintf('The HTTP status code is not a redirect ("%s" given).', $status)); } + + if (301 == $status && !array_key_exists('cache-control', $headers)) { + $this->headers->remove('cache-control'); + } } /** @@ -83,7 +87,7 @@ class RedirectResponse extends Response - + Redirecting to %1$s