Issues

ZF-9799: Zend_Amf_Response_Http send strange http headers

Issue Type: Bug Created: 2010-05-04T08:12:05.000+0000 Last Updated: 2011-09-29T12:15:31.000+0000 Status: Resolved Fix version(s): - 1.10.5 (26/May/10)

Reporter: Stefan Klug (stefanklug) Assignee: Wade Arnold (wadearnold) Tags: - Zend_Amf

Related issues: - ZF-11776

Attachments: - 016-Zend_Amf_Response_Http.patch

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

Posted by Wade Arnold (wadearnold) on 2010-05-04T08:38:37.000+0000

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

Posted by Stefan Klug (stefanklug) on 2010-05-04T09:31:14.000+0000

Wohoo that was fast... Thanks ;-)

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts