Web design and coding samples, free tools, tips and more..
Untitled Document

PostHeaderIcon How to disable browser cache for flash

As you know when you upload new swf file to server, browser doesn’t show it until you delete browser cache. Also it’s important to delete swf cache for websites which includes dynamic data and dynamic sub swf files. Here’s the method that we pass this problem for flash.

Now we’ll make some changes on AC_RunActiveContent.js file. ( Supported with CS3, for older versions you need to download it from here

1.open AC_RunActiveContent.js file

2. Change AC_FL_RunContent() function with this;

function AC_FL_RunContent(){
var ret =
AC_GetArgs
( arguments, “.swf?foo=”+new Date()+”" //<–Line we pass the browser by giving auto generated numbers
, “movie”, “clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″
, “application/x-shockwave-flash”
);
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

3.That’s all..

  • Share/Bookmark

2 Responses to “How to disable browser cache for flash”

Leave a Reply

Spam Protection by WP-SpamFree

Search