[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Caching issue with flash

Posted on 2011-03-21
4
Medium Priority
?
290 Views
Last Modified: 2012-05-11
We have a flash slideshow file that loads links and images from an XML file.  We need the flash file itself to cache like normal behavior, however it seems to be caching the XML file as well.  This file changes regularly, and this is causing a problem.  How can we change this, either through the ActionScript or through the XML file header so that it doesn't cache the XML?

I wish I could offer the sample code that handles the XML request, but I can't get to it at the moment.  I'm going to assume it's a simple XML.load expression and not an XML socket.
0
Comment
Question by:jamesbcox1980
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
deepanjandas earned 1000 total points
ID: 35178919
add a random number to the xml url path while calling from flash, like this:

var r:Number = Math.Random();
new URLRequest( "http://womedomain.com/xml/sample.xml?r="+r);

Warm Regards
Deepanjan Das
0
 
LVL 19

Assisted Solution

by:quizengine
quizengine earned 1000 total points
ID: 35178925
0
 
LVL 4

Author Comment

by:jamesbcox1980
ID: 35178944
Thanks, we will try adding the "?nocache=" and the date/time.  It appears to the safest way, however improbable it might be that we will get the same random number twice.  I'll try tomorrow and let you know how it works.
0
 
LVL 4

Author Closing Comment

by:jamesbcox1980
ID: 35200465
Thanks, both answers work equally.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question