NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class DefaultCanCacheStrategy

Default strategy used to determine of an HTTP request can be cached

  Guzzle\Plugin\Cache\DefaultCanCacheStrategy implements Guzzle\Plugin\Cache\CanCacheStrategyInterface

### Direct known subclasses

`Guzzle\Plugin\Cache\CallbackCanCacheStrategy`

Namespace: Guzzle\Plugin\Cache
Located at Guzzle/Plugin/Cache/DefaultCanCacheStrategy.php

## Methods summary

- `public` `canCacheRequest ( Guzzle\Http\Message\RequestInterface $request )`

  Determine if a request can be cached

- `public` `canCacheResponse ( Guzzle\Http\Message\Response $response )`

  Determine if a response can be cached

## Methods detail

# `public boolean`
`canCacheRequest( `Guzzle\Http\Message\RequestInterface` $request )`

Determine if a request can be cached

#### Parameters

$request
  ``Guzzle\Http\Message\RequestInterface``
  $request Request to determine

#### Returns

`boolean`

#### Implementation of

`Guzzle\Plugin\Cache\CanCacheStrategyInterface::canCacheRequest()`
# `public boolean`
`canCacheResponse( `Guzzle\Http\Message\Response` $response )`

Determine if a response can be cached

#### Parameters

$response
  ``Guzzle\Http\Message\Response``
  $response Response to determine

#### Returns

`boolean`

#### Implementation of

`Guzzle\Plugin\Cache\CanCacheStrategyInterface::canCacheResponse()`

### Magic methods summary