public 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.

@api

Return value

Boolean true if the response is validateable, false otherwise

1 call to Response::isValidateable()
Response::isCacheable in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php
Returns true if the response is worth caching under any circumstance.

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php, line 510

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function isValidateable() {
  return $this->headers
    ->has('Last-Modified') || $this->headers
    ->has('ETag');
}