Re: [Flashcoders] Flash Cache in IE FF

2009-09-27 Thread Charles Parcell
You can append a query string to any URL and this forces a reload of the
data from the CLIENT.

For example, as someone has already pointed out.

Main.swf?nocache=+(new Date()).getTime()

You can also do this to your data file.

myData.xml?nocache=+(new Date()).getTime()


As you might have noticed, I was specific about this working to force
reloading on the client. It has been my experience that this is not a 100%
solution. There are some instances where the server will cache the data and
query strings do not force the reloading of data. The server cache would
eventually update after a few hours though.

To be honest I do not know the solution to this part of the puzzle. I put
that issue on the laps of the server administrator. I know that it took his
several patches to fix the issue for users off domain. I do recall that
people on the same domain were still getting caching issues. This was
finally chalked up to a FOL (fact of life).

To provide full disclosure, this was a fairly complex network and domain
config. as it was for a major financial institution. So, the problem might
have been self induced and thus unique to the company.

Charles P.


On Fri, Sep 25, 2009 at 11:52 AM, Muzak p.ginnebe...@telenet.be wrote:

 Depending on your browser settings, it's both.
 But in general you only need to worry about the data caching.
 So appending a random number to the text file url should suffice.

 - Original Message - From: Don Schnell - TFE
 dschn...@toolsforeducation.com
 To: n...@joeflash.ca
 Cc: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Friday, September 25, 2009 3:35 PM
 Subject: Re: [Flashcoders] Flash Cache in IE  FF


  Chris/Joe, thanks a bunch, but here is my next question (just curious)...
 Is it the SWF which is not getting reloaded every time the page is viewed
 and thus my data is not getting reloaded or is it my data file that is
 cached and therefore the browser just keeps reloading the same old data
 file, or is it both?
 One other item I notice is that I entered the url for the actual text file
 i was attempting to load and when I previewed that file it also contained
 old content and did not update until I performed a CTRL F5. Even attempting
 to clear the browser cache didn't seem to help.

 *Don


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash Cache in IE FF

2009-09-25 Thread Don Schnell - TFE

Chris/Joe, thanks a bunch, but here is my next question (just curious)...
Is it the SWF which is not getting reloaded every time the page is 
viewed and thus my data is not getting reloaded or is it my data file 
that is cached and therefore the browser just keeps reloading the same 
old data file, or is it both?
One other item I notice is that I entered the url for the actual text 
file i was attempting to load and when I previewed that file it also 
contained old content and did not update until I performed a CTRL F5. 
Even attempting to clear the browser cache didn't seem to help.


*Don
*


Joseph Balderson wrote:
You cannot prevent a file from being cached in the browser; what most 
cache settings are designed to do is prevent session information and 
cookies from being cached. The best you can do is force the browser to 
grab the file from the server each and every time it is viewed, which 
acheives the desired effect.


To do that, all you need is to add the following js to your html file:

...Main.swf?nocache=+(new Date()).getTime()

I wrote a tutorial on adding this to the flex html template:
http://www.communitymx.com/abstract.cfm?cid=32F44

This appends a unique number on the end of the file name, tricking the 
browser into thinking it's getting a new file every time, thus 
downloading the SWF from the server every time. You can use an 
equivalent of this technique in ActionScript for loading modules you 
don't want cached as well.


I would not recommend this technique for production, as it will spike 
your server load something terrible, but for testing it's essential.

___

Joseph Balderson, Flex  Flash Platform Developer :: http://joeflash.ca
Author, Professional Flex 3 :: http://tinyurl.com/proflex3book


Don Schnell - TFE wrote:


Thanks William, I am not sure why there was no text in my original 
post but my issue is how to prevent data from being cached in IE  
Firefox.
My SWFs load in data from a flat text file and I tried using the 
following No-Cache settings before the head but they don't seem to 
prevent this issue.


// prevent browser cache
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache);



William Chadwick wrote:

Not sure what you want, as there is no text in your message.

But if you want to know about how SharedObject's work, here you go.
Local SharedObjects (AKA 'Flash Cookies') are stored in the 
following path in a directory with a random name:
C:\Documents and Settings\USERNAME\Application Data\Macromedia\Flash 
Player\#SharedObjects


There are some really clear articles on them on Adobe's devnet.

William Chadwick

On Thu, Sep 24, 2009 at 5:06 PM, Don Schnell - TFE 
dschn...@toolsforeducation.com 
mailto:dschn...@toolsforeducation.com wrote:



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
mailto:Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash Cache in IE FF

2009-09-25 Thread Muzak

Depending on your browser settings, it's both.
But in general you only need to worry about the data caching.
So appending a random number to the text file url should suffice.

- Original Message - 
From: Don Schnell - TFE dschn...@toolsforeducation.com

To: n...@joeflash.ca
Cc: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Friday, September 25, 2009 3:35 PM
Subject: Re: [Flashcoders] Flash Cache in IE  FF



Chris/Joe, thanks a bunch, but here is my next question (just curious)...
Is it the SWF which is not getting reloaded every time the page is 
viewed and thus my data is not getting reloaded or is it my data file 
that is cached and therefore the browser just keeps reloading the same 
old data file, or is it both?
One other item I notice is that I entered the url for the actual text 
file i was attempting to load and when I previewed that file it also 
contained old content and did not update until I performed a CTRL F5. 
Even attempting to clear the browser cache didn't seem to help.


*Don


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash Cache in IE FF

2009-09-24 Thread William Chadwick
Not sure what you want, as there is no text in your message.

But if you want to know about how SharedObject's work, here you go.
Local SharedObjects (AKA 'Flash Cookies') are stored in the following path
in a directory with a random name:
C:\Documents and Settings\USERNAME\Application Data\Macromedia\Flash
Player\#SharedObjects

There are some really clear articles on them on Adobe's devnet.

William Chadwick

On Thu, Sep 24, 2009 at 5:06 PM, Don Schnell - TFE 
dschn...@toolsforeducation.com wrote:


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash Cache in IE FF

2009-09-24 Thread Don Schnell - TFE


Thanks William, I am not sure why there was no text in my original post 
but my issue is how to prevent data from being cached in IE  Firefox.
My SWFs load in data from a flat text file and I tried using the 
following No-Cache settings before the head but they don't seem to 
prevent this issue.


// prevent browser cache
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache);



William Chadwick wrote:

Not sure what you want, as there is no text in your message.

But if you want to know about how SharedObject's work, here you go.
Local SharedObjects (AKA 'Flash Cookies') are stored in the following 
path in a directory with a random name:
C:\Documents and Settings\USERNAME\Application Data\Macromedia\Flash 
Player\#SharedObjects


There are some really clear articles on them on Adobe's devnet.

William Chadwick

On Thu, Sep 24, 2009 at 5:06 PM, Don Schnell - TFE 
dschn...@toolsforeducation.com 
mailto:dschn...@toolsforeducation.com wrote:



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
mailto:Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Flash Cache in IE FF

2009-09-24 Thread Chris Foster
Hi Don,

The conventional way to avoid loading cached content into Flash is to
call a unique URL for the content every time. One way to do this is to
append a random number or UTC timecode (in milliseconds) to your URL,
for example (AS3):

var l:Loader = new Loader();
var req:URLRequest = new URLRequest(your url here);
var vars:URLVariables = new URLVariables();
req.method = URLRequestMethod.POST;
vars.antiCache = Math.round(Math.random()*99);
req.data = vars;
l.load(req);

Hope that helps...
C:


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Don
Schnell - TFE
Sent: Friday, 25 September 2009 1:07 PM
To: William Chadwick
Cc: Flash Coders List
Subject: Re: [Flashcoders] Flash Cache in IE  FF


Thanks William, I am not sure why there was no text in my original post
but my issue is how to prevent data from being cached in IE  Firefox.
My SWFs load in data from a flat text file and I tried using the
following No-Cache settings before the head but they don't seem to
prevent this issue.

// prevent browser cache
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache);



William Chadwick wrote:
 Not sure what you want, as there is no text in your message.

 But if you want to know about how SharedObject's work, here you go.
 Local SharedObjects (AKA 'Flash Cookies') are stored in the following 
 path in a directory with a random name:
 C:\Documents and Settings\USERNAME\Application Data\Macromedia\Flash 
 Player\#SharedObjects

 There are some really clear articles on them on Adobe's devnet.

 William Chadwick

 On Thu, Sep 24, 2009 at 5:06 PM, Don Schnell - TFE 
 dschn...@toolsforeducation.com 
 mailto:dschn...@toolsforeducation.com wrote:


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 mailto:Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash Cache in IE FF

2009-09-24 Thread Joseph Balderson
You cannot prevent a file from being cached in the browser; what most cache 
settings are designed to do is prevent session information and cookies from 
being cached. The best you can do is force the browser to grab the file from the 
server each and every time it is viewed, which acheives the desired effect.


To do that, all you need is to add the following js to your html file:

...Main.swf?nocache=+(new Date()).getTime()

I wrote a tutorial on adding this to the flex html template:
http://www.communitymx.com/abstract.cfm?cid=32F44

This appends a unique number on the end of the file name, tricking the browser 
into thinking it's getting a new file every time, thus downloading the SWF from 
the server every time. You can use an equivalent of this technique in 
ActionScript for loading modules you don't want cached as well.


I would not recommend this technique for production, as it will spike your 
server load something terrible, but for testing it's essential.

___

Joseph Balderson, Flex  Flash Platform Developer :: http://joeflash.ca
Author, Professional Flex 3 :: http://tinyurl.com/proflex3book


Don Schnell - TFE wrote:


Thanks William, I am not sure why there was no text in my original post 
but my issue is how to prevent data from being cached in IE  Firefox.
My SWFs load in data from a flat text file and I tried using the 
following No-Cache settings before the head but they don't seem to 
prevent this issue.


// prevent browser cache
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache);



William Chadwick wrote:

Not sure what you want, as there is no text in your message.

But if you want to know about how SharedObject's work, here you go.
Local SharedObjects (AKA 'Flash Cookies') are stored in the following 
path in a directory with a random name:
C:\Documents and Settings\USERNAME\Application Data\Macromedia\Flash 
Player\#SharedObjects


There are some really clear articles on them on Adobe's devnet.

William Chadwick

On Thu, Sep 24, 2009 at 5:06 PM, Don Schnell - TFE 
dschn...@toolsforeducation.com 
mailto:dschn...@toolsforeducation.com wrote:



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
mailto:Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Flash Cache in IE FF

2009-09-24 Thread Chris Foster
Sorry - formatting got screwed up there... one more try...

AS3 example of 'anticache' technique.
-

var l:Loader = new Loader();
var req:URLRequest = new URLRequest(your url here); 
var vars:URLVariables = new URLVariables(); 
req.method = URLRequestMethod.POST; 
vars.antiCache = Math.round(Math.random()*99); 
req.data = vars; 
l.load(req); 


Regards,
C:

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Don
Schnell - TFE
Sent: Friday, 25 September 2009 1:07 PM
To: William Chadwick
Cc: Flash Coders List
Subject: Re: [Flashcoders] Flash Cache in IE  FF


Thanks William, I am not sure why there was no text in my original post
but my issue is how to prevent data from being cached in IE  Firefox.
My SWFs load in data from a flat text file and I tried using the
following No-Cache settings before the head but they don't seem to
prevent this issue.

// prevent browser cache
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache);



William Chadwick wrote:
 Not sure what you want, as there is no text in your message.

 But if you want to know about how SharedObject's work, here you go.
 Local SharedObjects (AKA 'Flash Cookies') are stored in the following 
 path in a directory with a random name:
 C:\Documents and Settings\USERNAME\Application Data\Macromedia\Flash 
 Player\#SharedObjects

 There are some really clear articles on them on Adobe's devnet.

 William Chadwick

 On Thu, Sep 24, 2009 at 5:06 PM, Don Schnell - TFE 
 dschn...@toolsforeducation.com 
 mailto:dschn...@toolsforeducation.com wrote:


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 mailto:Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash Cache in IE FF

2009-09-24 Thread Don Schnell - TFE
Thanks Chris, I forgot all about that technique (been away from this for 
a little bit)!


*Don *


Chris Foster wrote:

Sorry - formatting got screwed up there... one more try...

AS3 example of 'anticache' technique.
-

var l:Loader = new Loader();
var req:URLRequest = new URLRequest(your url here); 
var vars:URLVariables = new URLVariables(); 
req.method = URLRequestMethod.POST; 
vars.antiCache = Math.round(Math.random()*99); 
req.data = vars; 
l.load(req); 



Regards,
C:

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Don
Schnell - TFE
Sent: Friday, 25 September 2009 1:07 PM
To: William Chadwick
Cc: Flash Coders List
Subject: Re: [Flashcoders] Flash Cache in IE  FF


Thanks William, I am not sure why there was no text in my original post
but my issue is how to prevent data from being cached in IE  Firefox.
My SWFs load in data from a flat text file and I tried using the
following No-Cache settings before the head but they don't seem to
prevent this issue.

// prevent browser cache
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache);



William Chadwick wrote:
  

Not sure what you want, as there is no text in your message.

But if you want to know about how SharedObject's work, here you go.
Local SharedObjects (AKA 'Flash Cookies') are stored in the following 
path in a directory with a random name:
C:\Documents and Settings\USERNAME\Application Data\Macromedia\Flash 
Player\#SharedObjects


There are some really clear articles on them on Adobe's devnet.

William Chadwick

On Thu, Sep 24, 2009 at 5:06 PM, Don Schnell - TFE 
dschn...@toolsforeducation.com 
mailto:dschn...@toolsforeducation.com wrote:



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
mailto:Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.
  

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders