Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.0, 1.0.1, 1.0.2, 1.0.3
-
Fix Version/s: 1.5.0
-
Component/s: Zend_Cache
-
Labels:None
-
Fix Version Priority:Nice to Have
Description
Example: An XML document is output with the Content-Type header set to text/xml. Zend_Cache_Frontend_Page is used and when retrieving a cached copy, the Content-Type header is incorrectly set to text/html.
See http://xeaura.xeaura-host.co.uk/sitemap.xml for an example. The cache time is about 15 seconds. Initiall you will see the document with the correct content-type (and correctly formatted in Firefox), refreshing will give you the cached copy (wrong content-type and not formatted in Firefox).
Zend_Cache doesn't send Content-Type header.
Something like this should work, no ?
require 'Zend/Cache.php') [...] we make $cache object header("Content-Type..."); $cache->start() require_once 'Model.php' [...] [...] your work to make the XML file echo($xmlString);require 'Zend/Cache.php') [...] we make $cache object header("Content-Type..."); $cache->start() require_once 'Model.php' [...] [...] your work to make the XML file echo($xmlString);