PATH:
home
/
fengshp
/
www
/
wp-content
/
plugins
/
updraftplus
/
vendor
/
guzzle
/
guzzle
/
src
/
Guzzle
/
Plugin
/
Cache
<?php namespace Guzzle\Plugin\Cache; use Guzzle\Http\Message\RequestInterface; use Guzzle\Http\Message\Response; /** * Default strategy used to determine of an HTTP request can be cached */ class DefaultCanCacheStrategy implements CanCacheStrategyInterface { public function canCacheRequest(RequestInterface $request) { // Only GET and HEAD requests can be cached if ($request->getMethod() != RequestInterface::GET && $request->getMethod() != RequestInterface::HEAD) { return false; } // Never cache requests when using no-store if ($request->hasHeader('Cache-Control') && $request->getHeader('Cache-Control')->hasDirective('no-store')) { return false; } return true; } public function canCacheResponse(Response $response) { return $response->isSuccessful() && $response->canCache(); } }
[+]
..
[-] CanCacheStrategyInterface.php
[edit]
[-] DefaultCacheKeyProvider.php
[edit]
[-] DefaultRevalidation.php
[edit]
[-] CacheStorageInterface.php
[edit]
[-] SkipRevalidation.php
[edit]
[-] DefaultCacheStorage.php
[edit]
[-] composer.json
[edit]
[-] CacheKeyProviderInterface.php
[edit]
[-] DenyRevalidation.php
[edit]
[-] CallbackCanCacheStrategy.php
[edit]
[-] RevalidationInterface.php
[edit]
[-] DefaultCanCacheStrategy.php
[edit]
[-] CachePlugin.php
[edit]