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;

 object file=$path...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


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 flexcoders%40yahoogroups.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: [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
http://groups.yahoo.com/group/flexcoders/message/67849;_ylc=X3oDMTM3cW1ybmloBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2dJZAM2Nzg0OQRzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzExNzM4ODQ4NzIEdHBjSWQDNjc4NDk-(
1)  Reply (via web post)
http://groups.yahoo.com/group/flexcoders/post;_ylc=X3oDMTJyZmdndHNxBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2dJZAM2Nzg0OQRzZWMDZnRyBHNsawNycGx5BHN0aW1lAzExNzM4ODQ4NzI-?act=replymessageNum=67849|
Start
a new topic
http://groups.yahoo.com/group/flexcoders/post;_ylc=X3oDMTJmdTJvOXBzBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNudHBjBHN0aW1lAzExNzM4ODQ4NzI-
Messageshttp://groups.yahoo.com/group/flexcoders/messages;_ylc=X3oDMTJmdGNrcGYwBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNtc2dzBHN0aW1lAzExNzM4ODQ4NzI-
--
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]http://groups.yahoo.com/;_ylc=X3oDMTJlMGtyMXZuBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTE3Mzg4NDg3Mg--
Change settings via the
Webhttp://groups.yahoo.com/group/flexcoders/join;_ylc=X3oDMTJnb2k5c3BlBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNzdG5ncwRzdGltZQMxMTczODg0ODcy(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
http://groups.yahoo.com/group/flexcoders;_ylc=X3oDMTJlMmNyam5hBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNocGYEc3RpbWUDMTE3Mzg4NDg3Mg--|
Yahoo!
Groups Terms of Use http://docs.yahoo.com/info/terms/ | Unsubscribe
[EMAIL PROTECTED]
 Recent Activity

  -  121
  New 
Membershttp://groups.yahoo.com/group/flexcoders/members;_ylc=X3oDMTJnbWdkdmdqBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDdnRsBHNsawN2bWJycwRzdGltZQMxMTczODg0ODcy

Visit Your Group
http://groups.yahoo.com/group/flexcoders;_ylc=X3oDMTJmcWV1anFuBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzExNzM4ODQ4NzI-
SPONSORED LINKS

  - Software development
toolhttp://groups.yahoo.com/gads;_ylc=X3oDMTJkYmlrc2VuBF9TAzk3MzU5NzE0BF9wAzEEZ3JwSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNzbG1vZARzdGltZQMxMTczODg0ODcy?t=msk=Software+development+toolw1=Software+development+toolw2=Software+developmentw3=Software+development+servicesw4=Home+design+softwarew5=Software+development+companyc=5s=152g=2.sig=-g7I-F8ruxPL8no8ZFAx0w
  - Software 
developmenthttp://groups.yahoo.com/gads;_ylc=X3oDMTJkaWpxaDlkBF9TAzk3MzU5NzE0BF9wAzIEZ3JwSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNzbG1vZARzdGltZQMxMTczODg0ODcy?t=msk=Software+developmentw1=Software+development+toolw2=Software+developmentw3=Software+development+servicesw4=Home+design+softwarew5=Software+development+companyc=5s=152g=2.sig=gr9mtAoKFJnQF06zjx1waw
  - Software development
serviceshttp://groups.yahoo.com/gads;_ylc=X3oDMTJkcGNxcmQ0BF9TAzk3MzU5NzE0BF9wAzMEZ3JwSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNzbG1vZARzdGltZQMxMTczODg0ODcy?t=msk=Software+development+servicesw1=Software+development+toolw2=Software+developmentw3=Software+development+servicesw4=Home+design+softwarew5=Software+development+companyc=5s=152g=2.sig=ntjRNxtOdZ_jUSLfJPIkiw
  - Home design
softwarehttp://groups.yahoo.com/gads;_ylc=X3oDMTJkNDdibTExBF9TAzk3MzU5NzE0BF9wAzQEZ3JwSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNzbG1vZARzdGltZQMxMTczODg0ODcy?t=msk=Home+design+softwarew1=Software+development+toolw2=Software+developmentw3=Software+development+servicesw4=Home+design+softwarew5=Software+development+companyc=5s=152g=2.sig=UKtw8jm7fEaJty2hcCVyFg
  - Software development

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=?=$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 flexcoders%40yahoogroups.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