Yeah, the browser was caching the xml file.
Thanks for your reply. I figured out this problem.



On Mon, Oct 26, 2009 at 11:32 AM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ramzi,
>
> On 10/23/2009 10:07 AM, ramzi khlil wrote:
> > Here is more information I got.
> > My flash file is reading an xml file. when I update the xml file the
> flash
> > doesn't load the updated version.
> > So, if I display the xml file in the browser (http://localhost/news.xml)
> > then the flash load the updated version.
>
> That sounds like your web browser is caching the /XML file/ and not the
> flash file.
>
> What happens when your flash file tries to read the XML file from the
> server? Does the server get a request for the file and respond to it?
> Or, does the browser's cache fill it in?
>
> When the server /is/ contacted, what do the response headers look like?
>
> Finally, if nothing else seems to be working, you could change your
> flash program to load the XML file with a random unique number attached
> to a GET parameter, like this:
>
> fetchURL("http://host/path/to/file?u="; + currentTime + randomInteger);
>
> This should defeat many caching mechanisms that are in place.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkrlwRgACgkQ9CaO5/Lv0PDHGQCbBkmCsXC0AVeWgsmHzz/aoTvP
> etkAnjA1kEn2woybLFVJ/A7Mc0u+2GN4
> =VZ2a
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to