Control-F5 Browser Refresh (Flash object not refreshing)

Under the hood, I was wondering what Control-F5 for a browser does.

To me, it clears the cache and refreshes images/text/controls/etc. I get that.

Question:

What about Flash objects? I've been trying to refresh a page with a Flash control and it doesn't seem to refresh to the latest. It would only refresh after I manually clear the cache.


ANSWERS:


Alright so after some investigation it appears that clearing the cache with Control-F5 in IE7 does not delete/clear the xml file that the flash object reads from.

It appears to check if the file exists and if so, it will use that file instead regardless if there's a newer version.

One way to get around this was to make the browser treat each request as if it is requesting a new file and so I had to generate a random number and append it as:

In ActionScript:

var xmlPath = "/settings.xml?rand=" + getTimer();

Also, if there are flash component changes, you can also do the same by appending a random number to the flash SWF file that is being loaded.


<body onkeydown=" 
document.onkeydown = function(e)

{

    if(e) document.onkeypress = function(){return true;}

    var evt = e?e:event;
    if(evt.keyCode==116) 
    {
         //your code

    }
} ">

you must put the code in the body event, when you press any key, this function handle every key, in the case of F5 the code is 116


Seems like you're using Firefox try control-shift-R ;)



 MORE:


 ? PHP clear browser cache to avoid form data resend after refresh
 ? How to circumvent cache revalidation on browser refresh?
 ? How do I fully refresh an ASP.NET page so that Page_Load is run again?
 ? Wordpress starter plugin prevent save to data base after refresh browser
 ? What are some of the methods that can be used to avoid a page being cached by the browser?
 ? Disable Page Cache to force page load with browser back button
 ? Can you force a browser to always fetch the cached files and not do a round trip for a 304?
 ? Forcing (or highly encouraging) the browser to load webfonts directly from cache
 ? at which extensions caches the browser a page
 ? Apache domain redirect between virtualservers