Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with IE cache

Status
Not open for further replies.

rlals

Programmer
Jun 23, 2003
29
I do a swf and put this on my home page that is not finished, like my swf.

When I click in reload on I.E. this not reload a new version of my swf. I have to clean the IE cache to see the last version of my swf.

How can I say to IE not cache my swf ?

thanks

Ricardo Amaral Brazil
 
This not working. Look at my code.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html> 
<head>  
  <title>Lista</title>
    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
    <META HTTP-EQUIV="Expires" CONTENT="Mon, 04 Dec 1999 21:29:02 GMT">
    <!--#include file="conexao.asp"-->
</head>

<body bgcolor="#f8f8f8" background="../imagens/bg.gif" text="#000000" style="margin-left: 18px;">

<% 
'===========================
Dim cChave,nKey
cChave = Request.querystring("cOpcao")

'===========================
ncont=1
cQuery  = "SELECT * FROM artigos WHERE artigos.Tipo='"& cChave & "' ORDER BY DATA DESC"   

Set RecSet = DB.Execute(cQuery)
'===========================
 IF RecSet.EOF then %> 
     <SCRIPT>
        window.top.lista.location="nothing.html";
     </script>
<%Else%> 
   <table  width="760px" align="center" height="100%" border="0" cellspacing="0" cellpadding="10"> 
      <tr>
	   <td bgcolor="#EFF3FF" valign="top"  style="border-left: 1px solid #c0c0c0;" > <br><br>  
	   <table border=0 cellspacing="0" cellpadding="0">  
	<tr>
		<td width="257" height="206"  border-left-style: solid; border-left-width: thin;">
		<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
		  codebase="[URL unfurl="true"]http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"[/URL]
		  id="Movie1" width="257" height="340" >
           <%IF cChave="a" then %> <param name="movie" value="../swf/atendimento.swf"> <%End if %>
	       <%IF cChave="m" then %> <param name="movie" value="../swf/midia.swf">       <%End if %>	   
	       <%IF cChave="p" then %> <param name="movie" value="../swf/producao.swf">    <%End if %>	   
	       <%IF cChave="f" then %> <param name="movie" value="../swf/financeiro.swf">  <%End if %>		
	       <%IF cChave="o" then %> <param name="movie" value="../swf/outros.swf">      <%End if %>		  		     
		  <param name="quality" value="high">
		 <!-- <param name="wmode" value="transparent">-->
		  <embed name="avatar"  quality="high" bgcolor="#FFFFFF"
		    type="application/x-shockwave-flash"
		    pluginspage="[URL unfurl="true"]http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">[/URL]
		  </embed>
		</object><br>
		</td>
	</tr>
</table>
 
to prevent caching in IE add a random element either as part of the query string (flash 5) or as an element of the loadvars object (>5)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top