homepage Welcome to WebmasterWorld Guest from 23.21.34.188
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Flash Caching XML Import
Random URL's not working
rocknbil




msg:3702185
 1:23 am on Jul 19, 2008 (gmt 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?

 

eelixduppy




msg:3702667
 9:29 pm on Jul 19, 2008 (gmt 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?

rocknbil




msg:3702970
 4:00 pm on Jul 20, 2008 (gmt 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.

eelixduppy




msg:3709947
 3:58 am on Jul 29, 2008 (gmt 0)

You ever figure out what was causing this to not work as intended? I'm really curious.

rocknbil




msg:3712173
 4:07 pm on Jul 31, 2008 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved