ZF-3121: cache handling in Zend_Http_Client and/or Zend_Http_Response
Description
any http header configure the proxy and/or client cache options. This cache handling can be done by Zend_Http_Client using the Zend_Cache component.
- set cache object like:
2. set act as proxy or client like:
Now Zend_Http_Client can cache responses
- to check if the response is from cache like:
$response = $httpClient->request();
if ($response->isCached()) {
$originalResponse = $response->getOriginalResponse();
} elseif ($response === $response->getOriginalResponse()) {
echo 'true';
}
Comments
Posted by Wil Sinclair (wil) on 2008-04-18T16:27:18.000+0000
Please evaluate and categorize/assign as necessary.
Posted by A.J. Brown (ajbrown) on 2011-05-12T21:09:14.000+0000
I have a need for this in a currently active project. I will attempt a patch, and submit it for review.
Posted by Adam Lundrigan (adamlundrigan) on 2012-05-29T18:53:46.000+0000
Any movement on this issue?