X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FEventSubscriber%2FFinishResponseSubscriber.php;h=747262c849df6bc6d4019db2316fd668b2806524;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=9ea7a830239ab2456a31294f2d8034e4ab1c2566;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php b/web/core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php index 9ea7a8302..747262c84 100644 --- a/web/core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php +++ b/web/core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php @@ -189,9 +189,9 @@ class FinishResponseSubscriber implements EventSubscriberInterface { * * When neither Cache-Control nor any of the ETag, Last-Modified, Expires * headers are set on the response, ::get('Cache-Control') returns the value - * 'no-cache'. If any of ETag, Last-Modified or Expires are set but not - * Cache-Control, then 'private, must-revalidate' (in exactly this order) is - * returned. + * 'no-cache, private'. If any of ETag, Last-Modified or Expires are set but + * not Cache-Control, then 'private, must-revalidate' (in exactly this order) + * is returned. * * @see \Symfony\Component\HttpFoundation\ResponseHeaderBag::computeCacheControlValue() * @@ -202,7 +202,7 @@ class FinishResponseSubscriber implements EventSubscriberInterface { */ protected function isCacheControlCustomized(Response $response) { $cache_control = $response->headers->get('Cache-Control'); - return $cache_control != 'no-cache' && $cache_control != 'private, must-revalidate'; + return $cache_control != 'no-cache, private' && $cache_control != 'private, must-revalidate'; } /**