- Unternehmen
- Dienstleistungen
- Ressourcen
- Facebook Services
- Know How Datenbank
nur in englisch verfügbar
- Online Demos
nur in englisch verfügbar
|
Loading XML files in Flash over an SSL Connection in Internet Explorer fails if the Pragma:no-cache or Cache-control:no-cache HTTP headers are set on the XML file. Wow! I’ve been chewing on this one for a while… We have a Flash site running on https with dynamically generated XML content. The server always returned the Pragma:no-cache header so that the dynamic data isn’t cached in the browser. The bug is especially hard to find because the request goes out to the server successfully, but the XML object in flash remains undefined for no apparent reason. Only after removing the header output on the server it started to work. Difference in Headers sent from static xml files and dynamic generated xml files: PHP Generated XML Headers: HTTP/1.x 200 OK Date: Tue, 19 Sep 2006 00:43:38 GMT Server: Apache/2.0.55 (Win32) PHP/5.1.3 X-Powered-By: PHP/5.1.3 Cache-Control: cache, must-revalidate Pragma: public Content-Length: 1143 Keep-Alive: timeout=15, max=99 Connection: Keep-Alive Content-Type: text/xml Static XML File Headers: HTTP/1.x 200 OK Date: Tue, 19 Sep 2006 00:44:41 GMT Server: Apache/2.0.55 (Win32) PHP/5.1.3 Last-Modified: Tue, 19 Sep 2006 00:42:56 GMT Etag: “a6e0-477-c583a8fb” Accept-Ranges: bytes Content-Length: 1143 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: application/xml Best solution to fix that issue: header (”Cache-Control: cache, must-revalidate”); // or if you still want to prevent caching header (”Cache-Control: no-store”); header (”Pragma: public”); Read the original blog post here at lessrain.com back |