Skip navigation
Currently Being Moderated

Clearing flash cache by code

Feb 23, 2012 5:09 PM

I am using a Flash Component in our web site to show videos but I need a way to clear flash cache every time the page is loaded. Such a Flash Component configuration is based on an XML file to get the videos that will be played. Is there a way to do it using C# code?

 

Respectfully,

Jorge Maldonado

 
Replies
  • kglad
    72,228 posts
    Jul 21, 2002
    Currently Being Moderated
    Feb 23, 2012 5:45 PM   in reply to JORGEMAL

    no, it's done by appending a query string that changes so the browser thinks you're loading a different file each time.

     

    what file do you want to prevent retrieval from cache'ing?

     
    |
    Mark as:
  • kglad
    72,228 posts
    Jul 21, 2002
    Currently Being Moderated
    Feb 24, 2012 7:00 AM   in reply to JORGEMAL

    what does you component do and what data does it use?

     
    |
    Mark as:
  • kglad
    72,228 posts
    Jul 21, 2002
    Currently Being Moderated
    Feb 24, 2012 7:34 AM   in reply to JORGEMAL

    i only download and correct files if i'm hired.

     

    from your description it sounds like you just need to load those xml files and not retrieve them from the cache.  if that's the case you'll need to edit the component and append a query string to the xml urls.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 24, 2012 9:32 AM   in reply to JORGEMAL

    In the xml config file it most likely names the .xml playlist file. So in the config file is where you most likely do the change... something like:

    xmlData.load("news_ticker/news_ticker.xml?blarg="+new Date().getTime());

    For info on this method used in New Tickers.... toward bottom of page:

    http://www.kirupa.com/developer/mx2004/newsticker2.htm

    Best wishes,

    Adninjastrator

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points