Zend Framework

Zend_Amf_Response_Http send strange http headers

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.10.4
  • Fix Version/s: 1.10.5
  • Component/s: Zend_Amf
  • Labels:
    None

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://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html )

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

Issue Links

Activity

Hide
Wade Arnold added a comment -

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

Show
Wade Arnold added a comment - Thanks for the find. The update has been committed to trunk to reflect the W3C documentation for Cache-Control
Hide
Stefan Klug added a comment -

Wohoo that was fast... Thanks

Show
Stefan Klug added a comment - Wohoo that was fast... Thanks

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: