public function Request::isNoCache

Return value

Boolean

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php, line 1347

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function isNoCache() {
  return $this->headers
    ->hasCacheControlDirective('no-cache') || 'no-cache' == $this->headers
    ->get('Pragma');
}