Reputation: 8655
How to avoid my swf to be cached in memory?, I read that I have to use something like this:
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
Thats all?
Upvotes: 0
Views: 1387
Reputation: 6715
I was using get param to avoid cacheing, like myswf.swf?date or myswf.swf?random
I m using swfobject for loading swf to html pages. Here an example for you.
"myContent.swf?"+Math.random()*321 -> this makes swf to no cache.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>SWFObject dynamic embed - step 3</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("myContent.swf?"+Math.random()*321, "myContent", "300", "120", "9.0.0");
</script>
</head>
<body>
<div id="myContent">
<p>Alternative content</p>
</div>
</body>
</html>
Upvotes: 2
Reputation: 544
You can also use the expires header with a date that has already passed:
<!-- BEGIN INSERT -->
<META HTTP-EQUIV="Expires" CONTENT="Mon, 04 Dec 1999 21:29:02 GMT">
<!-- END INSERT -->
but yep, that's all!
Upvotes: 0