Hi,
I need some help.
I can’t figure it out what’s going with my Response Object and I’m
starting to bang my head on my keyboard. Here is my issue :
I’m losing headers set in the Response Object.
So if I do in some Action of an ActionController:
$this->getResponse()->setHeader("Cache-Control", 'no-cache,
must-revalidate', true);
A dump of the response object after front controller dispatching
($response = $ front->dispatch() ) give me :
protected '_headers' =>
array
empty
But the strange thing is that at the end of
Zend_Controller_Dispatcher_Standard::dispatch()
I have :
protected '_headers' =>
array
0 =>
array
'name' => string 'Cache-Control' (length=13)
'value' => string 'no-cache, must-revalidate' (length=25)
'replace' => boolean true
And then in Zend_Controller_Front::dispatch() just after the call to the
dispatcher I have
protected '_headers' =>
array
empty
Headers are gone :(
Do you have any pointers ?
--
Laurent Melmoux
Conseil et Solutions Web | [EMAIL PROTECTED]
2mx - Annecy, France | http://www.2mx.fr/