ZF-3121: cache handling in Zend_Http_Client and/or Zend_Http_Response

Issue Type: New Feature Created: 2008-04-16T11:19:49.000+0000 Last Updated: 2012-05-29T18:53:46.000+0000 Status: Open Fix version(s): Reporter: Marc Bennewitz (GIATA mbH) (mben) Assignee: Torio Farazdagi (torio) Tags: - Zend_Http_Client

  • Zend_Http_Response

Related issues: Attachments:


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.

  1. set cache object like:
<pre class="highlight">
2. set act as proxy or client like: 

Now Zend_Http_Client can cache responses

  1. to check if the response is from cache like:
<pre class="highlight">
$response = $httpClient->request();
if ($response->isCached()) {
    $originalResponse = $response->getOriginalResponse();
} elseif ($response === $response->getOriginalResponse()) {
    echo 'true';


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?

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.