Jump to content


Photo

Clear Cache from Flash or HTML


  • Please log in to reply
6 replies to this topic

#1 trowley

trowley

    Member

  • Member
  • PipPip
  • 25 posts

Posted 07 October 2010 - 08:45 AM

Hey:

Is there a way to clear the cache from Flash or within the html?

I have two Flash files communicating together via php/mysql.

Every time you click a link in Flash file A, it sends a number to a mysql table via php and reloads the html page Flash file B is on. Flash file B checks the mysql table via php and loads an xml page based on that number.

Works fine in all browsers except ie, which caches the Flash page and keeps loading the same page(unless you clear the cache)

So what i need is a way to clear the cache either from Flash or from the html page.

Any suggestions?

Thanks!
  • 0

#2 J Stern

J Stern

    Advanced Member

  • Member
  • PipPipPipPip
  • 103 posts

Posted 07 October 2010 - 03:17 PM

Have you tried adding ?resetcache=true to the address.
  • 0

#3 trowley

trowley

    Member

  • Member
  • PipPip
  • 25 posts

Posted 07 October 2010 - 04:36 PM

Thanks for the reply!

How do you do that?
  • 0

#4 J Stern

J Stern

    Advanced Member

  • Member
  • PipPipPipPip
  • 103 posts

Posted 08 October 2010 - 11:24 AM

try adding that tag to the end of the link. The link in your flash A would like something like
<A HREF='http://www.domain.com/link.php?resetcache=true'>


  • 0

#5 trowley

trowley

    Member

  • Member
  • PipPip
  • 25 posts

Posted 08 October 2010 - 01:07 PM

Thanks, I will try that!
  • 0

#6 trowley

trowley

    Member

  • Member
  • PipPip
  • 25 posts

Posted 08 October 2010 - 01:24 PM

ok, didn't work.

For some reason ie8 is caching the Flash so it does not update on page load. ie6&7 (+all other browsers)work fine!

I guess i have to do a browser test and load a different file for ie8!

Thanks anyway
  • 0

#7 virtual

virtual

    Advanced Member

  • Advanced Member
  • PipPipPipPip
  • 883 posts
  • LocationLa Jolla, California

Posted 08 October 2010 - 01:59 PM

You can tell IE8 to act like IE7
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
  • 0
Lynne
180virtual




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users