# Stop caching swf files with loader component

**URL:** <https://forum.kirupa.com/t/stop-caching-swf-files-with-loader-component/149798>\
**Category:** flash\
**Created:** [June 1, 2005, 1:26pm UTC](https://forum.kirupa.com/t/stop-caching-swf-files-with-loader-component/149798 "2005-06-01T13:26:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![citizen\_erazed](https://avatars.discourse-cdn.com/v4/letter/c/439d5e/32.png) [@citizen\_erazed](https://forum.kirupa.com/u/citizen_erazed)\
**Post date:** [June 1, 2005, 1:26pm UTC](https://forum.kirupa.com/t/stop-caching-swf-files-with-loader-component/149798/1 "2005-06-01T13:26:44Z")

</div>

I am using the loader component to load swf files into my main movie. The problem is that swf files are being cached and when they are updated I dont see the changes. Its fine if I delete my cache, but I make people do that everytime they come to my site.

I tried doing:

myIdentifier=Math.round(Math.random()\*10000);  
page\_loader.contentPath = “news.swf?uniq=”+myIdentifier;

But, not luck. Anyone know how I can do this with the loader component.

You can view the site at [http://www.driverlane.co.za](http://www.driverlane.co.za)

Thanks
