need to force SWF to reload, avoid browser cache

Posted on 2011-10-11
Last Modified: 2012-05-12
The SWF embed on this page is attached:

We are having a problem with the game not completely reloading each time, I guess it is getting cached in the browser. I have this in the head of the file (ASP script):

<%      response.cachecontrol="no-cache"
      response.addheader "Pragma", "no-cache"
      response.expires=-1 %> try to avoid caching, but that might only be affecting the HTML, not the SWF.

How can I force the SWF to reload each time the page is hit? I was thinking of maybe pointing a variable with the musicTriviaGame.swf URL maybe? Something with a date/time? I'm not sure how to do that, or if that would work.

Thank you!
<div class="gamemodule">
<script language="javascript">
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
			'codebase', ',0,0,0',
			'width', '440',
			'height', '300',
			'src', 'musicTriviaGame',
			'quality', 'high',
			'pluginspage', '',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'musicTriviaGame',
			'bgcolor', '#000000',
			'name', 'musicTriviaGame',
			'menu', 'true',
			'allowFullScreen', 'false',
			'movie', 'musicTriviaGame',
			'salign', ''
			); //end AC code
	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=",0,0,0" width="440" height="300" id="musicTriviaGame" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="allowFullScreen" value="false" />
	<param name="movie" value="musicTriviaGame.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#000000" />	<embed src="musicTriviaGame.swf" quality="high" wmode="transparent" bgcolor="#000000" width="440" height="300" name="musicTriviaGame" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="" />

Open in new window

Question by:bbdesign
    LVL 16

    Accepted Solution


    Author Comment

    Thank you. Good idea, just add a variable.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
    Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
    In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now