LOGIN Don't have an account yet?   Register

Forgot password?
 

XML reload from server

  • avatar
    wilsont
    on 5/10/11
    I have the xml flash banner installed in my site. After updating the XML the website does not always reload the new content. I added php to my page to force a no cache but on some computers the old xml file is still there so after doing a refresh the browser reverts to the old XML in the cache. Is there a way to force the reload of the XML file every time someone loads the site?
  • avatar
    corneliu.chi
    on 6/10/11
    Hi,

    We set up a cache buster in the index.html file:
                    
    // cache buster
    var cacheBuster = "?t=" + Date.parse(new Date());
    
                    
    You can use that one to download the latest XML file. Just put the cacheBuster variable after the path to the XML path, like this:
                    
    flashvars.xmlPath = "xml/banner.xml" + cacheBuster;
    
                    

    This should do it.

rss Subcribe to topic RSS

Post a comment

Please login to join the discussions. Don't have an account? Register (it takes 30 seconds)

This week's featured product

Store Locator

This cool AJAX application will enhance your website by showing your stores' locations. You can also display an image and a short description so your users know exactly where to find your business.

Become a premium member

premium membership Flabell and Themesbell membership provides users with the ability to download any of our components for Adobe Flash and website themes for free, during an entire year.
read more