thanks Carl,
what issues does it fix for IE, and would it also prevent the images being 
cached?
> Date: Thu, 29 Oct 2009 10:22:58 -0700
> Subject: Re: [Flashcoders] swf and xml caching?
> From: carlwelchdes...@gmail.com
> To: flashcoders@chattyfig.figleaf.com
> 
> Matt's cachebuster works, but I also add this to the header of your html
> file (fixes IE related issues):
> 
> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
> <META HTTP-EQUIV="expires" CONTENT="0">
> 
> --Carl.
> 
> On Thu, Oct 29, 2009 at 5:23 AM, David Hunter <davehunte...@hotmail.com>wrote:
> 
> >
> > brilliant thanks for that, i'll give it a go. david
> >
> > > From: mattsp...@gmail.com
> > > Date: Thu, 29 Oct 2009 07:44:39 -0400
> > > Subject: Re: [Flashcoders] swf and xml caching?
> > > To: flashcoders@chattyfig.figleaf.com
> > >
> > > The problem is xml caching, which can be fixed with the "cachebuster"
> > > trick. Where you have the path for the XML, use:
> > >
> > > 'http://www.sitename.com/info.xml?cachebuster='+new<http://www.sitename.com/info.xml?cachebuster=%27+new>Date().getTime();
> > >
> > > Because it will generate a unique date and time every single time, it
> > > will force a fresh load of the xml file rather than grabbing the
> > > cached version.
> > >
> > > google "as3 xml cachebuster" for more info, there might be other
> > > versions of this trick as well.
> > >
> > > .m
> > >
> > > On Thu, Oct 29, 2009 at 7:39 AM, David Hunter <davehunte...@hotmail.com>
> > wrote:
> > > >
> > > > hi,
> > > > a while ago i did a portfolio site for a photographer which loads lots
> > of images using an xml file. everything works fine. when you return to the
> > site it loads more quickly as do the images, i guess because the browser has
> > cached them. but sometimes after the site has been updated (ie. photos have
> > been added to the portfolio and put in the xml file) it doesn't recognise
> > that new content is there and loads the same old photos. only after clearing
> > cache or private data and then returning to the site does it load the new
> > images. obviously this is far from ideal.
> > > > i'm not sure if its because the swf gets cached or the xml gets cached
> > or both.
> > > > i've just seen a note on the adobe site about using "Expires" header in
> > an html page or PRAGMA header to prevent the contents being cached but it
> > would be great to not cache the swf and xml which are very small files but
> > cache the images so the site runs quicker.
> > > > thanks in advance for any help,
> > > > david
> > > > _________________________________________________________________
> > > > New Windows 7: Simplify what you do everyday. Find the right PC for
> > you.
> > > >
> > http://www.microsoft.com/uk/windows/buy/_______________________________________________
> > > > 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
> >
> > _________________________________________________________________
> > Chat to your friends for free on selected mobiles
> >
> > http://clk.atdmt.com/UKM/go/174426567/direct/01/_______________________________________________
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> 
> 
> 
> -- 
> Carl Welch
> http://www.carlwelch.com
> 805.403.4819
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
                                          
_________________________________________________________________
New Windows 7: Find the right PC for you. Learn more.
http://www.microsoft.com/uk/windows/buy/_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to