PDA

View Full Version : How to refresh flash file without clearing cache??



ethancote
May 14th, 2002, 09:48 AM
Hello all,

How do you refresh a flash file on a browser without clearing cache each and every time you do a tweak to the flash file?

Problem:
Each time I tweak a flash file and view it on a browser, the "previous flash version" always get view and not the one I just tweaked. Is there a way to solve this problem without clearing cache to view the new changes in flash itself?

Or is there some sort of refresh javascript that will solved this problem?

NOTE: Refreshing the browser does not solved the problem.

Thanks to all those that lend a hand here.


Sincerely,

Chi Huynh
Web Designer of EthanCote.com
www.ethancote.com (http://www.ethancote.com)

eyezberg
May 14th, 2002, 11:53 AM
You need to append a randomly generated number to your swf, so the name will never be the same!
or rename yourself..

xtream
December 30th, 2006, 12:54 PM
Hi Got your probelm

I have only solution and that is if you are running Mozilla browser then just try

Ctrl + Shift + Delete and then they will ask you to clear all the data.

This is the only way you can do.

- Pritesh Gajjar

hl
December 30th, 2006, 01:18 PM
:lol:

In case anyone's actually paying attention to xtream.. he's wrong. Append a nice little random number after a question mark when embedding the file like my eyez said.

Nice revive. I like this guy.

jon-b
October 6th, 2008, 10:36 PM
sounds great! just what I need for my own project - but where and how do I place the question mark? In Action Script, the HTML, etc.? and how do I make it generate a new number each time - the website address has to remain the same of course...

Thanks!

Iamthejuggler
October 7th, 2008, 04:41 AM
Double Necro!!!!

Sirisian
October 7th, 2008, 08:46 AM
I use php to do it. When you include the URL path just add a little "foo.swf?r=" . time()