Re: [flexcoders] Re: Caching problem

2007-03-14 Thread slangeberg

That'll work with any cache-busting you need to do. I use it in testing, to
un-cache the swf file itself, when viewed on server. Ie: send rand var in
url and if it's present, pass it in to swf call (swfobject + php, here):

var so = new SWFObject( "ProductBuilder.swf?rand=",
"product_builder", "100%", "100%", "9", "#FF");

Saves me the 'pain' of going through some menu to clear browser's cache, not
to mention losing your browser's cache, in order to update one element!

-Scott

On 14 Mar 2007 08:44:42 -0700, Alex <[EMAIL PROTECTED]> wrote:


  Wow! O_O' Works flawlessly!! :-D

Many thanks for that trick dude!

--- In flexcoders@yahoogroups.com ,
slangeberg <[EMAIL PROTECTED]> wrote:
>
> With Flash, I've learned to do the lo-tech method of attaching
random
> numbers to the path. Simple, but it's been effective!:
>
> url:String = resource + "?rand=" + Math.floor(Math.random() *
10);
>
> -Scott
>
> On 14 Mar 2007 08:07:52 -0700, Alex <[EMAIL PROTECTED]> wrote:
> >
> > Hi there!
> >
> > I have an xml file that needs to be loaded eventually using a
> > URLRequest. I'm trying to avoid loading a cached file using these
> > headers:
> >
> > urlRequest.requestHeaders.push(new URLRequestHeader("Cache-
> > Control", "no-cache, no-store, max-age=0, must-revalidate"));
> > urlRequest.requestHeaders.push(new URLRequestHeader
> > ("Expires", "Fri, 30 Oct 1998 14:19:41 GMT"));
> > urlRequest.requestHeaders.push(new URLRequestHeader
> > ("Pragma", "no-cache"));
> >
> > It works ok in firefox and IE6.0.2900, but I still obtain a
cached file
> > in IE6.0.3790+ and IE7.
> >
> > Do I need to add any more headers? or what's the problem here?
> >
> > Thanks in advance
> >
> >
> >
>
>
>
> --
>
> : : ) Scott
>

 





--

: : ) Scott


Re: [flexcoders] Re: Caching problem

2007-03-23 Thread Tom Chiverton
On Friday 23 Mar 2007, slangeberg wrote:
> Now, my question is, what do people do to prevent caching of swf files
> themselves?

We use a web server / accelerator that isn't broken :-)
Seriously - if you change a file on disk, and your web server serves up the 
now non-existant file, you have big problems.

-- 
Tom Chiverton
Helping to dramatically consolidate out-of-the-box platforms
On: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Re: Caching problem

2007-03-23 Thread slangeberg

Hmm, i've had this experience on both Apache & IIS. I'm not talking about a
server cahce, I believe this is browser related. Upload SWF to server, and
do not see change in browser till cache is cleared. No one else experiences
this?

My current understanding is that since nothing about the page itself
changed, the browser (IE 6 & 7) is caching this resource. Am i wrong?

I've copied the original post, below.

-Scott

Hi there!

I have an xml file that needs to be loaded eventually using a
URLRequest. I'm trying to avoid loading a cached file using these
headers:

urlRequest.requestHeaders.push(new URLRequestHeader("Cache-
Control", "no-cache, no-store, max-age=0, must-revalidate"));
urlRequest.requestHeaders.push(new URLRequestHeader
("Expires", "Fri, 30 Oct 1998 14:19:41 GMT"));
urlRequest.requestHeaders.push(new URLRequestHeader
("Pragma", "no-cache"));

It works ok in firefox and IE6.0.2900, but I still obtain a cached file
in IE6.0.3790+ and IE7.

Do I need to add any more headers? or what's the problem here?

Thanks in advance

  Messages in this topic
(
1)  Reply (via web post)
|
Start
a new topic

Messages
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
[image: Yahoo!
Groups]
Change settings via the
Web(Yahoo!
ID required)
Change settings via email: Switch delivery to Daily
Digest<[EMAIL PROTECTED]:+Digest>|
Switch
format to Traditional<[EMAIL PROTECTED]:+Traditional>
Visit Your Group
|
Yahoo!
Groups Terms of Use  | Unsubscribe
<[EMAIL PROTECTED]>
 Recent Activity

  -  121
  New 
Members

Visit Your Group

SPONSORED LINKS

  - Software development
tool
  - Software 
development
  - Software development
services
  - Home design
software
  - Software development
comp

Re: [flexcoders] Re: Caching problem

2007-03-26 Thread Tom Chiverton
On Friday 23 Mar 2007, slangeberg wrote:
> Hmm, i've had this experience on both Apache & IIS. I'm not talking about a
> server cahce, I believe this is browser related. Upload SWF to server, and
> do not see change in browser till cache is cleared. No one else experiences
> this?

We don't, no.
Maybe your web server is sending funny headers, or your web browser has odd 
settings.

-- 
Tom Chiverton
Helping to augmentatively harness synergistic systems
On: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Re: Caching problem

2007-03-26 Thread slangeberg

You don't experience this with IE? This has followed me no matter where I've
worked, what server I'm dealing with! What am I doing wrong here (other than
using IE)?

-Scott

On 26 Mar 2007 01:59:50 -0700, Tom Chiverton <[EMAIL PROTECTED]>
wrote:


On Friday 23 Mar 2007, slangeberg wrote:
> Hmm, i've had this experience on both Apache & IIS. I'm not talking
about a
> server cahce, I believe this is browser related. Upload SWF to server,
and
> do not see change in browser till cache is cleared. No one else
experiences
> this?

We don't, no.
Maybe your web server is sending funny headers, or your web browser has
odd
settings.

--
Tom Chiverton
Helping to augmentatively harness synergistic systems
On: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office address
is at St James's Court Brown Street Manchester M2 2JF.  A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee you
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents.  If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links







--

: : ) Scott


Re: [flexcoders] Re: Caching problem

2007-03-26 Thread Tom Chiverton
On Monday 26 Mar 2007, slangeberg wrote:
> You don't experience this with IE?

Nope.
AFAIK we've got all the default settings in Apache set.

-- 
Tom Chiverton
Helping to challengingly architect low-risk action-items
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Re: Caching problem

2007-03-26 Thread slangeberg


went away after I reset IE to check every time far a new file



Ah yes, that's right. I used to do that, but it doesn't gaurantee that my
users have the same settings. Hence, my dilemma!

Thanks,

-Scott


On 26 Mar 2007 07:15:48 -0700, Paul DeCoursey <[EMAIL PROTECTED]> wrote:


  I used to have this issue, but I found it went away after I reset IE
to check every time far a new file. It also made a big difference to
make sure that the server was sending the correct caching headers.
Check the HEAD on a request to determine if it is sending the correct
expires header. I only do this for development. Production
environments should be able to run without problems if there are
browsers caching things.

--- In flexcoders@yahoogroups.com ,
slangeberg <[EMAIL PROTECTED]> wrote:
>
> You don't experience this with IE? This has followed me no matter
where I've
> worked, what server I'm dealing with! What am I doing wrong here
(other than
> using IE)?
>
> -Scott
>
> On 26 Mar 2007 01:59:50 -0700, Tom Chiverton <[EMAIL PROTECTED]>

> wrote:
> >
> > On Friday 23 Mar 2007, slangeberg wrote:
> > > Hmm, i've had this experience on both Apache & IIS. I'm not talking
> > about a
> > > server cahce, I believe this is browser related. Upload SWF to
server,
> > and
> > > do not see change in browser till cache is cleared. No one else
> > experiences
> > > this?
> >
> > We don't, no.
> > Maybe your web server is sending funny headers, or your web
browser has
> > odd
> > settings.
> >
> > --
> > Tom Chiverton
> > Helping to augmentatively harness synergistic systems
> > On: http://thefalken.livejournal.com
> >
> > 
> >
> > This email is sent for and on behalf of Halliwells LLP.
> >
> > Halliwells LLP is a limited liability partnership registered in
England
> > and Wales under registered number OC307980 whose registered office
address
> > is at St James's Court Brown Street Manchester M2 2JF. A list of
members is
> > available for inspection at the registered office. Any reference to a
> > partner in relation to Halliwells LLP means a member of Halliwells
LLP.
> > Regulated by the Law Society.
> >
> > CONFIDENTIALITY
> >
> > This email is intended only for the use of the addressee named
above and
> > may be confidential or legally privileged. If you are not the
addressee you
> > must not read it and must not use any information contained in nor
copy it
> > nor inform any person other than Halliwells LLP or the addressee
of its
> > existence or contents. If you have received this email in error
please
> > delete it and notify Halliwells LLP IT Department on 0870 365 8008.
> >
> > For more information about Halliwells LLP visit www.halliwells.com.
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
>
>
> --
>
> : : ) Scott
>

 





--

: : ) Scott


Re: [flexcoders] Re: Caching problem

2007-03-26 Thread Tom Chiverton
On Monday 26 Mar 2007, Paul DeCoursey wrote:
> environments should be able to run without problems if there are
> browsers caching things.

*boggle*
How would that work ?
If a service changes it's interface, how is the old client meant to consume 
the new format ?

-- 
Tom Chiverton
Helping to centrally scale B2C functionalities
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Re: Caching problem

2007-03-26 Thread Paul J DeCoursey
Tom Chiverton wrote:
> On Monday 26 Mar 2007, Paul DeCoursey wrote:
>   
>> environments should be able to run without problems if there are
>> browsers caching things.
>> 
>
> *boggle*
> How would that work ?
> If a service changes it's interface, how is the old client meant to consume 
> the new format ?
>   

Several ways. 
1)  Fail gracefully
2)  If a service changes and is incompatible with old clients then do 
not reuse the url.  For example all of our front ends have version 
numbers in the url so we can quickly determine if the user is on an old 
version.  Our services are the same way, except that for the most part 
they don't change.  We spend a lot of time making sure it's what we need 
before.
...  This is not a difficult problem, there are a lot of ways to get 
around cache servers and cached browser issues.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Re: Caching problem

2007-03-26 Thread Tom Chiverton
On Monday 26 Mar 2007, Paul J DeCoursey wrote:
> Several ways.
> 1)  Fail gracefully

Well, yes, I'd expect everyones apps already does.
But you don't want all your users kicked out with 'remote server error' - 
that's no better than the alternative.

> ...  This is not a difficult problem, there are a lot of ways to get
> around cache servers and cached browser issues.

Indeed.
When I was doing (D)HTML caching was the number one headache.

-- 
Tom Chiverton
Helping to conveniently architect frictionless e-business
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [Flashcoders] Re: [flexcoders] Re: Caching problem

2008-04-13 Thread Mike Chabot
A note on this that I don't think was mentioned in the other posts is
if you have the newer "AC_FL_RunContent" function in your base HTML,
instead of having something like this:
"main.swf?12345"

You will have this (note the lack of any file extension):
"src","main?12345"

So if your goal is to roll out a new version of a Flex app you could
write something like the following as the first arguments to the
AC_FL_RunContent function

"src","main?version=#variables.versionNumber#",

This URL has more info:
http://www.adobe.com/devnet/activecontent/articles/devletter.html

The typical meta tags and no-cache headers don't see to work for these
SWF files with the combination of MSIE 7, IIS 6 and the
AC_FL_RunContent function. My guess is that it has something to do
with the object tag being written using JavaScript instead of being
present when the page is first delivered. The addition of a unique URL
variable does the trick though.

Enjoy,
Mike Chabot

On Fri, Mar 23, 2007 at 11:18 AM, slangeberg <[EMAIL PROTECTED]> wrote:
> Much better approach!
>
> Now, my question is, what do people do to prevent caching of swf files
> themselves?
>
> Here's the setup: I'm deploying a business app, and want all users to see
> the update to the SWF. However, I don't want to tell everyone to clear their
> cache. Should I just pass a version number to the swf request, to update to
> that point, ie - point to:
>
> $vers = "1.0.2";
>
> $path = "/flash/myMovie.swf?vers=" . $vers;
>
> ...etc.
>
> Is there a best practice for this kind of thing? I'm also curious how this
> will apply to Module development in Flex. How do I make sure that people
> have current modules, without blasting their cache, every time?
>
> Thanks,
>
> -Scott