Welcome to WebmasterWorld Guest from 54.144.7.239

Forum Moderators: open

Message Too Old, No Replies

Flash Caching XML Import

Random URL's not working

     
1:23 am on Jul 19, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


Why doesn't this work? Where xmlList is my path to the XML to import:

playlist.load (xmlList+"?r=" + Math.random());

Also tried

playlist.load (xmlList+"?r=" + new Date().getTime());

The problem, of course, is that after uploading a revised XML file, new items don't appear until I delete browser cache 30+ times, delete the flash object from the server, re-upload it, and do a coo-coo dance on one foot while holding a burning bundle of white sage (none of which should be necessary, minus the coo-coo dance.)

Being a query string, you can only do this on a server, so that kills testing locally with trace(). This is an old trick I used for dynamic images too, but for some reason it's caching the imported XML file no matter what I do.

Any ideas? Docs on precisely how Flash caches files?

9:29 pm on July 19, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 12, 2005
posts:5966
votes: 0


Very odd, this should be working as you want. Do you have any other caching issues on this server anywhere else? Is this only not working with one specific browser?
4:00 pm on July 20, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


Does it in both IE and FF. I have an XML video list, add the new video and July's video to the XML . . . shows up . . June . . . .refresh, delete cache, still June . . . finally got it to update after a while but it should be immediate.

I know it's working. I hadn't run Opera in a while so I loaded it up in Opera and it was fine. It's obviously caching, don't want to version the flash object as it is used on 30 or 40 pages. Internet weirdness.

3:58 am on July 29, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 12, 2005
posts:5966
votes: 0


You ever figure out what was causing this to not work as intended? I'm really curious.
4:07 pm on July 31, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


Niet! Been out of town for a week and no, no solution. It is obviously caching somewhere, on the proxy of my satellite connection, in the browser . . . wierdness.