Returns true if the response includes a Vary header.
@api
Return value
Boolean true if the response includes a Vary header, false otherwise
File
 
   - drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php, line 942
Class
  
  - Response 
- Response represents an HTTP response.
Namespace
  Symfony\Component\HttpFoundation
Code
public function hasVary() {
  return (bool) $this->headers
    ->get('Vary');
}