Gotcha. I figured that out after thinking about it. Guess I will set an ioerror function and have that strip the date out to test locally.
Thanks Aran! Nathan Mynarcik Interactive Web Developer [email protected] 254.749.2525 www.mynarcik.com -----Original Message----- From: Aran Rhee <[email protected]> Date: Thu, 25 Mar 2010 09:29:37 To: <[email protected]> Subject: Re: [SWFObject] Caching of XML files? Yes, cache busting on loading of external assets (images, video, sound, xml etc) works , but it won't work while testing locally necessarily (Flash IDE and some browsers will not let you use query strings on file:\\ references) BTW - your cache busting should look like the below (getTime() give you a unique number of the # of milliseconds since 1970 :) loadXML("xml/player.xml?nocache="+new Date().getTime()); Aran On Thu, Mar 25, 2010 at 8:02 AM, Nathan Mynarcik <[email protected]> wrote: > This isn't necessarily a SWFObject question but felt some individuals > on this list might be able to help. > > I know we have discussed multiple times on this list about adding new > Date().getDate() to the end of a url to load a swf. I was curious if > this can be used when loading XML files? > > I like to have XML files be the source of maintenance for alot of my > projects and have noticed lately that when changes are made to the XML > documents, the flash file does not reflect them without clearing your > browser cache. > > I have tried to add the new date to the end of the XML url string when > loading. > > loadXML("xml/player.xml?nocache="+new Date.getDate()); > > ...but it fails to load the file. > > I have even added the META tag to the HTML document to disable caching > as well. > > Any suggestions? > > -- > You received this message because you are subscribed to the Google Groups > "SWFObject" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<swfobject%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/swfobject?hl=en. > > -- You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/swfobject?hl=en. -- You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.
