header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Srikanth
Points:0
Posts:0

11/15/2011 4:26:47 AM

Title: How to disable/stop from cache in firefox.


How can I force the web browser to reload a newly deployed Flash file without clearing the cache?


tried the below..

change the source name by tagging version(extra characters).

src="/flex/Prototype.swf?ver=1.0.1"

the above works in Internet Explorer but does not work in Firefox and Chrome.



1
Ronald
Points: 430
Posts:0
11/23/2011 10:59:42 PM



I always change the swf name in incremental order to avoid caching issue. Like
myswf1.swf
myswf2.swf

this will force the browser to load new file always and also gives you the benifit of caching until a new file is replaced.

2
Frank_T
Points: 0
Posts:0
11/23/2011 11:02:13 PM



src="/flex/Prototype.swf?ver=1.0.1" this will work in all the browsers as far as you are increasing the version number with each new file updated to something like

ver=1.0.2
ver=1.0.3
ver=1.0.4

and so on.

This makes browser think it as a new file always.

3
Srikanth
Points: 0
Posts:0
11/23/2011 11:26:53 PM



Tried above methods but it works only in internet explorer
and not in firefox ,Chrome;

thnx for reply..

4
Ronald
Points: 430
Posts:0
11/23/2011 11:50:42 PM



Ok got your problem. There are 2 things which cause this problem , one is your page that contains the swf and 2nd is the swf file itself. So if The page itself is cached then it will always show the old HTML code and will load old file only. So along with the above solution you also need to stop page caching. Say your html page is test.html.

use test.html?ver=1.1 and so on for this also. This will make a new page load when file is updated and the older code will load new swf each time


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 5+6 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions