Re: [Flashcoders] NoCache XML

2010-04-07 Thread Karl DeSaulniers
For those who need a little more tighter control of no-cache on their  
webserver.
You can evidently control your no-cache via an .htacess in the  
required directory.


http://www.askapache.com/htaccess/apache-speed-cache-control.html

It also looks like you can set the no-cache per file type, i.e - .swf
I got this from someone on my PHP list. Thought it was interesting,
so I am passing it on.

HTHs someone

Karl


On Apr 5, 2010, at 8:29 PM, Nathan Mynarcik wrote:

The nocache in the SWFObject is so the swf isn't cached.  I also use the
same treatment for the XML that is loaded into the swf.  That along  
with the

META tags that call for no caching and that does the trick.  I guess for
safety purposes, I could add your script as well.  Might be overkill,  
but if

it prevents every browser from caching, so be it.

Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: Monday, April 05, 2010 8:14 PM
To: Flash Coders List
Subject: Re: [Flashcoders] NoCache XML

Hi Nathan,
Are you adding the no-cache to the html page or to the swfobject that
loads?
I noticed on your site that you have the no-cache in the swfobject.
Maybe if the no-cache was associated with the html file that the
swfobject was embedded/placed in, it would work?
I believe, but no proof atm, that the code I supplied will make sure
nothing in the html will cache. Not the html page nor its contents.
But I can not validate that atm.
JAT

Karl


On Apr 5, 2010, at 6:29 PM, Karl DeSaulniers wrote:

It seems to be working for me, but I do not have an XML being read. I
put it at the very top. Before any HTML and it makes the page reload
every time. I tested with different text on the page every time I
uploaded to the server and it showed. Maybe take the code I supplied
and try it once? Make sure that php code gets read before anything
else on the page.
Hth
Gl

Karl

Sent from losPhone

On Apr 5, 2010, at 5:20 PM, Nathan Mynarcik nat...@mynarcik.com
wrote:


I know I used the meta tags to control cache and that still didn't
fix.

I'm interested to see if this is any different. Please share your
findings.

Thanks,


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: Karl DeSaulniers k...@designdrumm.com
Date: Mon, 5 Apr 2010 17:09:09
To: Flash Coders Listflashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] NoCache XML

Hi there,
Just thought I'd share some code I found.
Seems to be a no-cache method that works.
Nathan, I know you said you figured out your issue,
but for anyone else looking for a no-cache code, here you go.

?php
Header( Cache-Control: no-cache);
Header( Cache-Control: must-revalidate);
?

I believe if this php is put before the
!DOCTYPE html PUBLIC...
of your HTML, It will control the headers of the document and will
not let the page cache.
I am going to test myself, but has anyone used something like this?
I want to find a simple solution to this no-cache thing, I am
thinking I have found it.
Please let me know if there is an easier way.
Thanks,

Karl


On Mar 31, 2010, at 7:41 PM, Nathan Mynarcik wrote:

Figured out this issue.  The NoCache method worked fine.  I was
trying to
use the information before it was set in it's variables.

Thanks Steven and others for their replies!

Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: Steven Sacks [mailto:flash...@stevensacks.net]
Sent: Friday, March 26, 2010 10:45 PM
To: nat...@mynarcik.com
Subject: Re: [Flashcoders] NoCache XML

You should use Firebug in Firefox to see what's going on. That or
Charles.


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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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

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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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

Karl DeSaulniers
Design Drumm
http

Re: [Flashcoders] NoCache XML

2010-04-05 Thread Karl DeSaulniers

Hi there,
Just thought I'd share some code I found.
Seems to be a no-cache method that works.
Nathan, I know you said you figured out your issue,
but for anyone else looking for a no-cache code, here you go.

?php
Header( Cache-Control: no-cache);
Header( Cache-Control: must-revalidate);
?

I believe if this php is put before the
!DOCTYPE html PUBLIC...
of your HTML, It will control the headers of the document and will  
not let the page cache.

I am going to test myself, but has anyone used something like this?
I want to find a simple solution to this no-cache thing, I am  
thinking I have found it.

Please let me know if there is an easier way.
Thanks,

Karl


On Mar 31, 2010, at 7:41 PM, Nathan Mynarcik wrote:

Figured out this issue.  The NoCache method worked fine.  I was  
trying to

use the information before it was set in it's variables.

Thanks Steven and others for their replies!

Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: Steven Sacks [mailto:flash...@stevensacks.net]
Sent: Friday, March 26, 2010 10:45 PM
To: nat...@mynarcik.com
Subject: Re: [Flashcoders] NoCache XML

You should use Firebug in Firefox to see what's going on. That or  
Charles.



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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] NoCache XML

2010-04-05 Thread Henrik Andersson

Karl DeSaulniers wrote:

Hi there,
Just thought I'd share some code I found.
Seems to be a no-cache method that works.
Nathan, I know you said you figured out your issue,
but for anyone else looking for a no-cache code, here you go.

?php
Header( Cache-Control: no-cache);
Header( Cache-Control: must-revalidate);
?

I believe if this php is put before the
!DOCTYPE html PUBLIC...
of your HTML, It will control the headers of the document and will not
let the page cache.
I am going to test myself, but has anyone used something like this?
I want to find a simple solution to this no-cache thing, I am thinking I
have found it.
Please let me know if there is an easier way.
Thanks,

Karl



Is that even legal http? clearly no-cache contradicts must-revalidate.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] NoCache XML

2010-04-05 Thread Nathan Mynarcik
I know I used the meta tags to control cache and that still didn't fix. 

I'm interested to see if this is any different. Please share your findings. 

Thanks,


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: Karl DeSaulniers k...@designdrumm.com
Date: Mon, 5 Apr 2010 17:09:09 
To: Flash Coders Listflashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] NoCache XML

Hi there,
Just thought I'd share some code I found.
Seems to be a no-cache method that works.
Nathan, I know you said you figured out your issue,
but for anyone else looking for a no-cache code, here you go.

?php
Header( Cache-Control: no-cache);
Header( Cache-Control: must-revalidate);
?

I believe if this php is put before the
!DOCTYPE html PUBLIC...
of your HTML, It will control the headers of the document and will  
not let the page cache.
I am going to test myself, but has anyone used something like this?
I want to find a simple solution to this no-cache thing, I am  
thinking I have found it.
Please let me know if there is an easier way.
Thanks,

Karl


On Mar 31, 2010, at 7:41 PM, Nathan Mynarcik wrote:

Figured out this issue.  The NoCache method worked fine.  I was  
trying to
use the information before it was set in it's variables.

Thanks Steven and others for their replies!

Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: Steven Sacks [mailto:flash...@stevensacks.net]
Sent: Friday, March 26, 2010 10:45 PM
To: nat...@mynarcik.com
Subject: Re: [Flashcoders] NoCache XML

You should use Firebug in Firefox to see what's going on. That or  
Charles.


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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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] NoCache XML

2010-04-05 Thread Dave Watts
 Is that even legal http? clearly no-cache contradicts must-revalidate.

Yes, it's legal. The two commands don't actually conflict. There are
several different cache-control directives you can set in an HTTP
response.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] NoCache XML

2010-04-05 Thread Karl DeSaulniers
It seems to be working for me, but I do not have an XML being read. I  
put it at the very top. Before any HTML and it makes the page reload  
every time. I tested with different text on the page every time I  
uploaded to the server and it showed. Maybe take the code I supplied  
and try it once? Make sure that php code gets read before anything  
else on the page.

Hth
Gl

Karl

Sent from losPhone

On Apr 5, 2010, at 5:20 PM, Nathan Mynarcik nat...@mynarcik.com  
wrote:


I know I used the meta tags to control cache and that still didn't  
fix.


I'm interested to see if this is any different. Please share your  
findings.


Thanks,


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: Karl DeSaulniers k...@designdrumm.com
Date: Mon, 5 Apr 2010 17:09:09
To: Flash Coders Listflashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] NoCache XML

Hi there,
Just thought I'd share some code I found.
Seems to be a no-cache method that works.
Nathan, I know you said you figured out your issue,
but for anyone else looking for a no-cache code, here you go.

?php
Header( Cache-Control: no-cache);
Header( Cache-Control: must-revalidate);
?

I believe if this php is put before the
!DOCTYPE html PUBLIC...
of your HTML, It will control the headers of the document and will
not let the page cache.
I am going to test myself, but has anyone used something like this?
I want to find a simple solution to this no-cache thing, I am
thinking I have found it.
Please let me know if there is an easier way.
Thanks,

Karl


On Mar 31, 2010, at 7:41 PM, Nathan Mynarcik wrote:

Figured out this issue.  The NoCache method worked fine.  I was
trying to
use the information before it was set in it's variables.

Thanks Steven and others for their replies!

Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: Steven Sacks [mailto:flash...@stevensacks.net]
Sent: Friday, March 26, 2010 10:45 PM
To: nat...@mynarcik.com
Subject: Re: [Flashcoders] NoCache XML

You should use Firebug in Firefox to see what's going on. That or
Charles.


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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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

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


Re: [Flashcoders] NoCache XML

2010-04-05 Thread Karl DeSaulniers

Hi Nathan,
Are you adding the no-cache to the html page or to the swfobject that  
loads?

I noticed on your site that you have the no-cache in the swfobject.
Maybe if the no-cache was associated with the html file that the  
swfobject was embedded/placed in, it would work?
I believe, but no proof atm, that the code I supplied will make sure  
nothing in the html will cache. Not the html page nor its contents.

But I can not validate that atm.
JAT

Karl


On Apr 5, 2010, at 6:29 PM, Karl DeSaulniers wrote:

It seems to be working for me, but I do not have an XML being read. I  
put it at the very top. Before any HTML and it makes the page reload  
every time. I tested with different text on the page every time I  
uploaded to the server and it showed. Maybe take the code I supplied  
and try it once? Make sure that php code gets read before anything  
else on the page.

Hth
Gl

Karl

Sent from losPhone

On Apr 5, 2010, at 5:20 PM, Nathan Mynarcik nat...@mynarcik.com  
wrote:


I know I used the meta tags to control cache and that still didn't  
fix.


I'm interested to see if this is any different. Please share your  
findings.


Thanks,


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: Karl DeSaulniers k...@designdrumm.com
Date: Mon, 5 Apr 2010 17:09:09
To: Flash Coders Listflashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] NoCache XML

Hi there,
Just thought I'd share some code I found.
Seems to be a no-cache method that works.
Nathan, I know you said you figured out your issue,
but for anyone else looking for a no-cache code, here you go.

?php
Header( Cache-Control: no-cache);
Header( Cache-Control: must-revalidate);
?

I believe if this php is put before the
!DOCTYPE html PUBLIC...
of your HTML, It will control the headers of the document and will
not let the page cache.
I am going to test myself, but has anyone used something like this?
I want to find a simple solution to this no-cache thing, I am
thinking I have found it.
Please let me know if there is an easier way.
Thanks,

Karl


On Mar 31, 2010, at 7:41 PM, Nathan Mynarcik wrote:

Figured out this issue.  The NoCache method worked fine.  I was
trying to
use the information before it was set in it's variables.

Thanks Steven and others for their replies!

Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: Steven Sacks [mailto:flash...@stevensacks.net]
Sent: Friday, March 26, 2010 10:45 PM
To: nat...@mynarcik.com
Subject: Re: [Flashcoders] NoCache XML

You should use Firebug in Firefox to see what's going on. That or
Charles.


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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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

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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] NoCache XML

2010-04-05 Thread Karl DeSaulniers

Nice site BTW.
The panels took me by surprise. :)

Karl


On Apr 5, 2010, at 6:29 PM, Karl DeSaulniers wrote:

It seems to be working for me, but I do not have an XML being read. I  
put it at the very top. Before any HTML and it makes the page reload  
every time. I tested with different text on the page every time I  
uploaded to the server and it showed. Maybe take the code I supplied  
and try it once? Make sure that php code gets read before anything  
else on the page.

Hth
Gl

Karl

Sent from losPhone

On Apr 5, 2010, at 5:20 PM, Nathan Mynarcik nat...@mynarcik.com  
wrote:


I know I used the meta tags to control cache and that still didn't  
fix.


I'm interested to see if this is any different. Please share your  
findings.


Thanks,


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: Karl DeSaulniers k...@designdrumm.com
Date: Mon, 5 Apr 2010 17:09:09
To: Flash Coders Listflashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] NoCache XML

Hi there,
Just thought I'd share some code I found.
Seems to be a no-cache method that works.
Nathan, I know you said you figured out your issue,
but for anyone else looking for a no-cache code, here you go.

?php
Header( Cache-Control: no-cache);
Header( Cache-Control: must-revalidate);
?

I believe if this php is put before the
!DOCTYPE html PUBLIC...
of your HTML, It will control the headers of the document and will
not let the page cache.
I am going to test myself, but has anyone used something like this?
I want to find a simple solution to this no-cache thing, I am
thinking I have found it.
Please let me know if there is an easier way.
Thanks,

Karl


On Mar 31, 2010, at 7:41 PM, Nathan Mynarcik wrote:

Figured out this issue.  The NoCache method worked fine.  I was
trying to
use the information before it was set in it's variables.

Thanks Steven and others for their replies!

Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: Steven Sacks [mailto:flash...@stevensacks.net]
Sent: Friday, March 26, 2010 10:45 PM
To: nat...@mynarcik.com
Subject: Re: [Flashcoders] NoCache XML

You should use Firebug in Firefox to see what's going on. That or
Charles.


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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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

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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] NoCache XML

2010-04-05 Thread Karl DeSaulniers

Well I hope so, I got it from a tutorial. lol

Karl


On Apr 5, 2010, at 5:14 PM, Henrik Andersson wrote:

Karl DeSaulniers wrote:

Hi there,
Just thought I'd share some code I found.
Seems to be a no-cache method that works.
Nathan, I know you said you figured out your issue,
but for anyone else looking for a no-cache code, here you go.

?php
Header( Cache-Control: no-cache);
Header( Cache-Control: must-revalidate);
?

I believe if this php is put before the
!DOCTYPE html PUBLIC...
of your HTML, It will control the headers of the document and will not
let the page cache.
I am going to test myself, but has anyone used something like this?
I want to find a simple solution to this no-cache thing, I am  
thinking I

have found it.
Please let me know if there is an easier way.
Thanks,

Karl



Is that even legal http? clearly no-cache contradicts must- 
revalidate.

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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


RE: [Flashcoders] NoCache XML

2010-04-05 Thread Nathan Mynarcik
The nocache in the SWFObject is so the swf isn't cached.  I also use the
same treatment for the XML that is loaded into the swf.  That along with the
META tags that call for no caching and that does the trick.  I guess for
safety purposes, I could add your script as well.  Might be overkill, but if
it prevents every browser from caching, so be it.

Nathan Mynarcik 
Interactive Web Developer
nat...@mynarcik.com 
254.749.2525
www.mynarcik.com

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: Monday, April 05, 2010 8:14 PM
To: Flash Coders List
Subject: Re: [Flashcoders] NoCache XML

Hi Nathan,
Are you adding the no-cache to the html page or to the swfobject that  
loads?
I noticed on your site that you have the no-cache in the swfobject.
Maybe if the no-cache was associated with the html file that the  
swfobject was embedded/placed in, it would work?
I believe, but no proof atm, that the code I supplied will make sure  
nothing in the html will cache. Not the html page nor its contents.
But I can not validate that atm.
JAT

Karl


On Apr 5, 2010, at 6:29 PM, Karl DeSaulniers wrote:

It seems to be working for me, but I do not have an XML being read. I  
put it at the very top. Before any HTML and it makes the page reload  
every time. I tested with different text on the page every time I  
uploaded to the server and it showed. Maybe take the code I supplied  
and try it once? Make sure that php code gets read before anything  
else on the page.
Hth
Gl

Karl

Sent from losPhone

On Apr 5, 2010, at 5:20 PM, Nathan Mynarcik nat...@mynarcik.com  
wrote:

 I know I used the meta tags to control cache and that still didn't  
 fix.

 I'm interested to see if this is any different. Please share your  
 findings.

 Thanks,


 Nathan Mynarcik
 Interactive Web Developer
 nat...@mynarcik.com
 254.749.2525
 www.mynarcik.com

 -Original Message-
 From: Karl DeSaulniers k...@designdrumm.com
 Date: Mon, 5 Apr 2010 17:09:09
 To: Flash Coders Listflashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] NoCache XML

 Hi there,
 Just thought I'd share some code I found.
 Seems to be a no-cache method that works.
 Nathan, I know you said you figured out your issue,
 but for anyone else looking for a no-cache code, here you go.

 ?php
 Header( Cache-Control: no-cache);
 Header( Cache-Control: must-revalidate);
 ?

 I believe if this php is put before the
 !DOCTYPE html PUBLIC...
 of your HTML, It will control the headers of the document and will
 not let the page cache.
 I am going to test myself, but has anyone used something like this?
 I want to find a simple solution to this no-cache thing, I am
 thinking I have found it.
 Please let me know if there is an easier way.
 Thanks,

 Karl


 On Mar 31, 2010, at 7:41 PM, Nathan Mynarcik wrote:

 Figured out this issue.  The NoCache method worked fine.  I was
 trying to
 use the information before it was set in it's variables.

 Thanks Steven and others for their replies!

 Nathan Mynarcik
 Interactive Web Developer
 nat...@mynarcik.com
 254.749.2525
 www.mynarcik.com

 -Original Message-
 From: Steven Sacks [mailto:flash...@stevensacks.net]
 Sent: Friday, March 26, 2010 10:45 PM
 To: nat...@mynarcik.com
 Subject: Re: [Flashcoders] NoCache XML

 You should use Firebug in Firefox to see what's going on. That or
 Charles.


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

 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com

 ___
 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
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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] NoCache XML

2010-04-05 Thread Karl DeSaulniers

Let me know if it works for you.
I would try once with just that php script for the no-cache.
Might do the trick instead of all three that you would have.
Because of the whole pre-processing thing.

GL
Karl


On Apr 5, 2010, at 8:29 PM, Nathan Mynarcik wrote:

The nocache in the SWFObject is so the swf isn't cached.  I also use the
same treatment for the XML that is loaded into the swf.  That along  
with the

META tags that call for no caching and that does the trick.  I guess for
safety purposes, I could add your script as well.  Might be overkill,  
but if

it prevents every browser from caching, so be it.

Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: Monday, April 05, 2010 8:14 PM
To: Flash Coders List
Subject: Re: [Flashcoders] NoCache XML

Hi Nathan,
Are you adding the no-cache to the html page or to the swfobject that
loads?
I noticed on your site that you have the no-cache in the swfobject.
Maybe if the no-cache was associated with the html file that the
swfobject was embedded/placed in, it would work?
I believe, but no proof atm, that the code I supplied will make sure
nothing in the html will cache. Not the html page nor its contents.
But I can not validate that atm.
JAT

Karl


On Apr 5, 2010, at 6:29 PM, Karl DeSaulniers wrote:

It seems to be working for me, but I do not have an XML being read. I
put it at the very top. Before any HTML and it makes the page reload
every time. I tested with different text on the page every time I
uploaded to the server and it showed. Maybe take the code I supplied
and try it once? Make sure that php code gets read before anything
else on the page.
Hth
Gl

Karl

Sent from losPhone

On Apr 5, 2010, at 5:20 PM, Nathan Mynarcik nat...@mynarcik.com
wrote:


I know I used the meta tags to control cache and that still didn't
fix.

I'm interested to see if this is any different. Please share your
findings.

Thanks,


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: Karl DeSaulniers k...@designdrumm.com
Date: Mon, 5 Apr 2010 17:09:09
To: Flash Coders Listflashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] NoCache XML

Hi there,
Just thought I'd share some code I found.
Seems to be a no-cache method that works.
Nathan, I know you said you figured out your issue,
but for anyone else looking for a no-cache code, here you go.

?php
Header( Cache-Control: no-cache);
Header( Cache-Control: must-revalidate);
?

I believe if this php is put before the
!DOCTYPE html PUBLIC...
of your HTML, It will control the headers of the document and will
not let the page cache.
I am going to test myself, but has anyone used something like this?
I want to find a simple solution to this no-cache thing, I am
thinking I have found it.
Please let me know if there is an easier way.
Thanks,

Karl


On Mar 31, 2010, at 7:41 PM, Nathan Mynarcik wrote:

Figured out this issue.  The NoCache method worked fine.  I was
trying to
use the information before it was set in it's variables.

Thanks Steven and others for their replies!

Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: Steven Sacks [mailto:flash...@stevensacks.net]
Sent: Friday, March 26, 2010 10:45 PM
To: nat...@mynarcik.com
Subject: Re: [Flashcoders] NoCache XML

You should use Firebug in Firefox to see what's going on. That or
Charles.


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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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

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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


RE: [Flashcoders] NoCache XML

2010-03-31 Thread Nathan Mynarcik
Figured out this issue.  The NoCache method worked fine.  I was trying to
use the information before it was set in it's variables.

Thanks Steven and others for their replies!

Nathan Mynarcik 
Interactive Web Developer
nat...@mynarcik.com 
254.749.2525
www.mynarcik.com

-Original Message-
From: Steven Sacks [mailto:flash...@stevensacks.net] 
Sent: Friday, March 26, 2010 10:45 PM
To: nat...@mynarcik.com
Subject: Re: [Flashcoders] NoCache XML

You should use Firebug in Firefox to see what's going on. That or Charles.


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


RE: [Flashcoders] NoCache XML

2010-03-28 Thread Nathan Mynarcik
The XML file is only called once for the user's experience.  On the initial
visit from the user, the XML for the UI of the site is called and then the
XML for the content is called (RSS feed).

If I can't figure this out, I might just set a cookie via JavaScript and
have it clear the contents in -1 days so nothing gets cached from the site.

Nathan Mynarcik 
Interactive Web Developer
nat...@mynarcik.com 
254.749.2525
www.mynarcik.com

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: Saturday, March 27, 2010 4:42 PM
To: Flash List
Subject: Re: [Flashcoders] NoCache XML

Just a thought, but maybe setting the variable that holds the XML you  
grab from the server to null right before it goes to grab the XML  
every time the page gets called.
That way it isn't holding on to the last XML grabbed?? It might be  
going to grab the xml while that variable already has a value and the  
browser is tripping it to clear the variable
before populating it again, but doesn't have that second call after  
its cleared till you refresh. Kind of a pseudo variable caching. Like  
I said, its just a thought. Not sure if that is even possible.
I am reaching though, I have had similar situations with my PHP files  
not getting variables, so I am interested to see what solution can be  
provided.
Best,

Karl


On Mar 26, 2010, at 8:46 PM, Nathan Mynarcik wrote:

I've tested it in all browsers.

IE, Safari, Opera, Chrome, FireFox

Anything else I don't really care about.  But first tests are in  
chrome and it is doing it in that. IE has been the worse but all work  
after refreshing one or two times.
--Original Message--
From: Steven Sacks
To: Nathan Mynarcik
To: Flash Coders List
Subject: Re: [Flashcoders] NoCache XML
Sent: Mar 26, 2010 8:36 PM

Safari doesn't honor nocache. Safari is a jerk. Are you using Safari?


On 3/26/2010 3:35 PM, Nathan Mynarcik wrote:
 That's similar to what I am doing. I know for a fact that the url  
 doesn't already have a ? in it.

 I have no clue why on some visits, the colors and other xml data is  
 not pulled. Then on a refresh it pulls them.

 --Original Message--
 From: Steven Sacks
 To: Nathan Mynarcik
 To: Flash Coders List
 Subject: Re: [Flashcoders] NoCache XML
 Sent: Mar 26, 2010 5:27 PM

 It should always work.  Perhaps the url of the xml has a ? already  
 in it?

 public function nocache(url:String):String
 {
   var d:Date = new Date();
   var nc:String = nocache= + d.getTime();
   if (url.indexOf(?)  -1) return url +  + nc;
   return url + ? + nc;
 }


 On 3/26/2010 2:27 PM, Nathan Mynarcik wrote:
 Hey everyone,

 I am loading in an external xml doc via

 loadXML(url of xml);

 To prevent browsers from caching the xml, I add at the end of the  
 url string a Date object like:

 loadXML(url of xml+?nocache=+new Date().getTime());

 This sometimes works and other times doesn't. The xml is the  
 backbone to the colors used in the UI of my site which goes black  
 when the load doesn't work properly.

 I have tried to add an IOERROREvent function to catch the error  
 and then supply the url to the load function without the Date  
 object appended.

 Is there any checks or different directions I can take to prevent  
 visitors from sometimes having to refresh until the xml gets  
 loaded correctly?
 Nathan Mynarcik
 Interactive Web Developer
 nat...@mynarcik.com
 254.749.2525
 www.mynarcik.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 Nathan Mynarcik
 Interactive Web Developer
 nat...@mynarcik.com
 254.749.2525
 www.mynarcik.com

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



Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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] NoCache XML

2010-03-27 Thread Karl DeSaulniers
Just a thought, but maybe setting the variable that holds the XML you  
grab from the server to null right before it goes to grab the XML  
every time the page gets called.
That way it isn't holding on to the last XML grabbed?? It might be  
going to grab the xml while that variable already has a value and the  
browser is tripping it to clear the variable
before populating it again, but doesn't have that second call after  
its cleared till you refresh. Kind of a pseudo variable caching. Like  
I said, its just a thought. Not sure if that is even possible.
I am reaching though, I have had similar situations with my PHP files  
not getting variables, so I am interested to see what solution can be  
provided.

Best,

Karl


On Mar 26, 2010, at 8:46 PM, Nathan Mynarcik wrote:

I've tested it in all browsers.

IE, Safari, Opera, Chrome, FireFox

Anything else I don't really care about.  But first tests are in  
chrome and it is doing it in that. IE has been the worse but all work  
after refreshing one or two times.

--Original Message--
From: Steven Sacks
To: Nathan Mynarcik
To: Flash Coders List
Subject: Re: [Flashcoders] NoCache XML
Sent: Mar 26, 2010 8:36 PM

Safari doesn't honor nocache. Safari is a jerk. Are you using Safari?


On 3/26/2010 3:35 PM, Nathan Mynarcik wrote:
That's similar to what I am doing. I know for a fact that the url  
doesn't already have a ? in it.


I have no clue why on some visits, the colors and other xml data is  
not pulled. Then on a refresh it pulls them.


--Original Message--
From: Steven Sacks
To: Nathan Mynarcik
To: Flash Coders List
Subject: Re: [Flashcoders] NoCache XML
Sent: Mar 26, 2010 5:27 PM

It should always work.  Perhaps the url of the xml has a ? already  
in it?


public function nocache(url:String):String
{
var d:Date = new Date();
var nc:String = nocache= + d.getTime();
if (url.indexOf(?)  -1) return url +  + nc;
return url + ? + nc;
}


On 3/26/2010 2:27 PM, Nathan Mynarcik wrote:

Hey everyone,

I am loading in an external xml doc via

loadXML(url of xml);

To prevent browsers from caching the xml, I add at the end of the  
url string a Date object like:


loadXML(url of xml+?nocache=+new Date().getTime());

This sometimes works and other times doesn't. The xml is the  
backbone to the colors used in the UI of my site which goes black  
when the load doesn't work properly.


I have tried to add an IOERROREvent function to catch the error  
and then supply the url to the load function without the Date  
object appended.


Is there any checks or different directions I can take to prevent  
visitors from sometimes having to refresh until the xml gets  
loaded correctly?

Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

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




Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] NoCache XML

2010-03-26 Thread Steven Sacks

It should always work.  Perhaps the url of the xml has a ? already in it?

public function nocache(url:String):String
{
var d:Date = new Date();
var nc:String = nocache= + d.getTime();
if (url.indexOf(?)  -1) return url +  + nc;
return url + ? + nc;
}


On 3/26/2010 2:27 PM, Nathan Mynarcik wrote:

Hey everyone,

I am loading in an external xml doc via

loadXML(url of xml);

To prevent browsers from caching the xml, I add at the end of the url string a 
Date object like:

loadXML(url of xml+?nocache=+new Date().getTime());

This sometimes works and other times doesn't. The xml is the backbone to the 
colors used in the UI of my site which goes black when the load doesn't work 
properly.

I have tried to add an IOERROREvent function to catch the error and then supply 
the url to the load function without the Date object appended.

Is there any checks or different directions I can take to prevent visitors from 
sometimes having to refresh until the xml gets loaded correctly?
Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com
___
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] NoCache XML

2010-03-26 Thread Nathan Mynarcik
That's similar to what I am doing. I know for a fact that the url doesn't 
already have a ? in it.

I have no clue why on some visits, the colors and other xml data is not pulled. 
Then on a refresh it pulls them. 
 
--Original Message--
From: Steven Sacks
To: Nathan Mynarcik
To: Flash Coders List
Subject: Re: [Flashcoders] NoCache XML
Sent: Mar 26, 2010 5:27 PM

It should always work.  Perhaps the url of the xml has a ? already in it?

public function nocache(url:String):String
{
var d:Date = new Date();
var nc:String = nocache= + d.getTime();
if (url.indexOf(?)  -1) return url +  + nc;
return url + ? + nc;
}


On 3/26/2010 2:27 PM, Nathan Mynarcik wrote:
 Hey everyone,

 I am loading in an external xml doc via

 loadXML(url of xml);

 To prevent browsers from caching the xml, I add at the end of the url string 
 a Date object like:

 loadXML(url of xml+?nocache=+new Date().getTime());

 This sometimes works and other times doesn't. The xml is the backbone to the 
 colors used in the UI of my site which goes black when the load doesn't work 
 properly.

 I have tried to add an IOERROREvent function to catch the error and then 
 supply the url to the load function without the Date object appended.

 Is there any checks or different directions I can take to prevent visitors 
 from sometimes having to refresh until the xml gets loaded correctly?
 Nathan Mynarcik
 Interactive Web Developer
 nat...@mynarcik.com
 254.749.2525
 www.mynarcik.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

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


Re: [Flashcoders] NoCache XML

2010-03-26 Thread Steven Sacks

Safari doesn't honor nocache. Safari is a jerk. Are you using Safari?


On 3/26/2010 3:35 PM, Nathan Mynarcik wrote:

That's similar to what I am doing. I know for a fact that the url doesn't already have a 
? in it.

I have no clue why on some visits, the colors and other xml data is not pulled. 
Then on a refresh it pulls them.

--Original Message--
From: Steven Sacks
To: Nathan Mynarcik
To: Flash Coders List
Subject: Re: [Flashcoders] NoCache XML
Sent: Mar 26, 2010 5:27 PM

It should always work.  Perhaps the url of the xml has a ? already in it?

public function nocache(url:String):String
{
var d:Date = new Date();
var nc:String = nocache= + d.getTime();
if (url.indexOf(?)  -1) return url +  + nc;
return url + ? + nc;
}


On 3/26/2010 2:27 PM, Nathan Mynarcik wrote:

Hey everyone,

I am loading in an external xml doc via

loadXML(url of xml);

To prevent browsers from caching the xml, I add at the end of the url string a 
Date object like:

loadXML(url of xml+?nocache=+new Date().getTime());

This sometimes works and other times doesn't. The xml is the backbone to the 
colors used in the UI of my site which goes black when the load doesn't work 
properly.

I have tried to add an IOERROREvent function to catch the error and then supply 
the url to the load function without the Date object appended.

Is there any checks or different directions I can take to prevent visitors from 
sometimes having to refresh until the xml gets loaded correctly?
Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

___
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] NoCache XML

2010-03-26 Thread Nathan Mynarcik
I've tested it in all browsers. 

IE, Safari, Opera, Chrome, FireFox 

Anything else I don't really care about.  But first tests are in chrome and it 
is doing it in that. IE has been the worse but all work after refreshing one or 
two times. 
--Original Message--
From: Steven Sacks
To: Nathan Mynarcik
To: Flash Coders List
Subject: Re: [Flashcoders] NoCache XML
Sent: Mar 26, 2010 8:36 PM

Safari doesn't honor nocache. Safari is a jerk. Are you using Safari?


On 3/26/2010 3:35 PM, Nathan Mynarcik wrote:
 That's similar to what I am doing. I know for a fact that the url doesn't 
 already have a ? in it.

 I have no clue why on some visits, the colors and other xml data is not 
 pulled. Then on a refresh it pulls them.

 --Original Message--
 From: Steven Sacks
 To: Nathan Mynarcik
 To: Flash Coders List
 Subject: Re: [Flashcoders] NoCache XML
 Sent: Mar 26, 2010 5:27 PM

 It should always work.  Perhaps the url of the xml has a ? already in it?

 public function nocache(url:String):String
 {
   var d:Date = new Date();
   var nc:String = nocache= + d.getTime();
   if (url.indexOf(?)  -1) return url +  + nc;
   return url + ? + nc;
 }


 On 3/26/2010 2:27 PM, Nathan Mynarcik wrote:
 Hey everyone,

 I am loading in an external xml doc via

 loadXML(url of xml);

 To prevent browsers from caching the xml, I add at the end of the url string 
 a Date object like:

 loadXML(url of xml+?nocache=+new Date().getTime());

 This sometimes works and other times doesn't. The xml is the backbone to the 
 colors used in the UI of my site which goes black when the load doesn't work 
 properly.

 I have tried to add an IOERROREvent function to catch the error and then 
 supply the url to the load function without the Date object appended.

 Is there any checks or different directions I can take to prevent visitors 
 from sometimes having to refresh until the xml gets loaded correctly?
 Nathan Mynarcik
 Interactive Web Developer
 nat...@mynarcik.com
 254.749.2525
 www.mynarcik.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 Nathan Mynarcik
 Interactive Web Developer
 nat...@mynarcik.com
 254.749.2525
 www.mynarcik.com

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



Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

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