Flash XML load bug in IE

Some cases, you may want to generate XML files on the fly. One of my project required dynamic XML files so the flash player can manipulate the XML. Fire Fox loads external XML files without a problem but IE has a issue.

I used PHP session to customize the XML files. Here is the HTTP headers with and without the session cookie.

Static XML Session enabled XML
‘HTTP/1.0 200 OKDate: Sun, 28 Jan 2007 21:16:20 GMTServer: Apache/2.0.51 (Fedora)

X-Powered-By: PHP/4.3.10

Content-Length: 5913

Connection: close

Content-Type: text/html

‘HTTP/1.0 200 OKDate: Sun, 28 Jan 2007 21:15:46 GMTServer: Apache/2.0.51 (Fedora)

X-Powered-By: PHP/4.3.10

Set-Cookie: PHPSESSID=d95865f2d70cbb6e976a3ec820b616be; path=/

Expires: Thu, 19 Nov 1981 08:52:00 GMT

Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0

Pragma: no-cache

Content-Length: 5913

Connection: close

Content-Type: text/html

I have spent many hours to solve this stupid bug. Luckily, I found this post. In short, I had to send this header:

header(’Cache-Control: cache, must-revalidate’);

header(’Pragma: public’);

I feel sorry for my Flash developer for accusing this bug. My bad.

admin on January 28th 2007 in Work-around

Trackback URI | Comments RSS

Leave a Reply

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word