Skip to main content
Participant
January 28, 2009
Question

prevent browser caching

  • January 28, 2009
  • 1 reply
  • 306 views
for development, I have a main.swf and a main.html

I periodically upload a revised main.swf. But I have to restart my browser when I retrieve the files from the remote server, in order to see my updated swf. The advice given on:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14743
"How to prevent caching of swf files"

does nothing, in IE FF or Safari, with FlashPlayer v 9

Can I get the browser to reload the swf whenever I click the browser's Reload button? Thanks.
This topic has been closed for replies.

1 reply

Damon Edwards
Inspiring
January 28, 2009
Give this a shot, put it at the top of your php page that houses your SWF, of course this is assuming your SWF is housed on a PHP page:

header("Expires: Mon, 26 Jul 1997 0f:00:00 GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", FALSE);
header("Pragma: no-cache");