Issues

ZF-9799: Zend_Amf_Response_Http send strange http headers

Description

Zend_Amf_Response_Http currently sends the headers:

Cache-Control: cache, must-revalidate Pragma: public

I was not able to find any documentation of "cache" in Cache-Control and public is also not noted in the Pragma documentation (see http://w3.org/Protocols/rfc2616/… )

I think the correct headers to disable caching would be:

Cache-Control: no-cache, must-revalidate Pragma: no-cache Expires: Thu, 19 Nov 1981 08:52:00 GMT

Attached is a patch, which fixes the problem.

Regards Stefan

Comments

Thanks for the find. The update has been committed to trunk to reflect the W3C documentation for Cache-Control

Wohoo that was fast... Thanks ;-)