JavaScript

IE9 Cache Problem While Refreshing With .swf Files

Problem (see details here):

When we test a Flash movie in a web page, the SWF may be cached by the browser software, so that when we make modifications to the SWF, the browser may continue to display the cached version of the SWF and ignore any new version.

Solution:

adding a time stamp new Date().getTime(), thereby force refresh from browser every time:

embedpano({
    swf: "xx.swf?_t=" + new Date().getTime(),
    xml: "xx.xml",
    target: "pano",
    html5: "prefer",
    bgcolor:"#323232",
    passQueryParameters: true
});

It’s said that methods as such don’t work in IE7, and if you want it dealt with, check out AS solutions in the link above.

Standard

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.