Client side Cache Problem

1 view
Skip to first unread message

sindhu

unread,
Jul 24, 2008, 12:13:05 AM7/24/08
to Flex India Community
Hi All,

When i try to run a flex bulit .swf file in RAD
server,sumtimes its working fine but sumtimes its not updating the
modified version.of swf file..(its taking the old file sumwhere from
buffer) i have used random number generation techinques to resolve
this issue..But even then this problem happens.Only if i delete all
the temporary internet files and folders,everytime i m running ,its
working fine...Can anyone suggest me a way to resolve this client side
cache permenantly?

Saravanan

unread,
Jul 24, 2008, 2:25:38 AM7/24/08
to Flex India Community
HI,

try to add "filename.swf?"+new Data().getDate() at the end of the file
name

otherwise u can add pragma

<HEAD><META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"></HEAD>

hope this will help u

~sara~

sindhu

unread,
Aug 5, 2008, 8:01:48 AM8/5/08
to Flex India Community
Thanks..for the solution...its working fine...But that problem is not
cleared completely...Sumtimes,rarely this problem arises..

Abdul Qabiz

unread,
Aug 5, 2008, 4:16:10 PM8/5/08
to flex_...@googlegroups.com
Just adding date might not help, you might need to make string more unique to kill the caching (actually making browser request again - data is cached anyway unless stopped by HTTP headers or equivalent ways).

(new Date ()).getTime ()

That should work.

But why do you want to kill the caching? Don't you think, you are making user download things again and again. If you are doing it for asset images or smaller fragments (low file size) it might make sense. If you are doing it for your entire app, believe me it would not only cause bad user-experience but also cost you more bandwidth (your server is serving all requests).

You can perhaps look at your app and figure out, what are those things you don't want to be cached? You can do it for selective things instead of entire app.

Never mind, if you have already taken care of these, I just thought to add my 2 cents :-)




On Tue, Aug 5, 2008 at 5:31 PM, sindhu <jsindhu...@gmail.com> wrote:

Thanks..for the solution...its working fine...But that problem is not
cleared completely...Sumtimes,rarely this problem arises..





--
-abdul
---------------------------------------
http://abdulqabiz.com/blog/
---------------------------------------
Reply all
Reply to author
Forward
0 new messages