Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Response.php

function Response::isValidateable

Returns true if the response includes headers that can be used to validate the response with the origin server using a conditional GET request.

@final

1 call to Response::isValidateable()
Response::isCacheable in vendor/symfony/http-foundation/Response.php
Returns true if the response may safely be kept in a shared (surrogate) cache.

File

vendor/symfony/http-foundation/Response.php, line 571

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function isValidateable() : bool {
    return $this->headers
        ->has('Last-Modified') || $this->headers
        ->has('ETag');
}
RSS feed
Powered by Drupal