# Prevent local file from caching when testing

**URL:** <https://forum.kirupa.com/t/prevent-local-file-from-caching-when-testing/269105>\
**Category:** Uncategorized\
**Created:** [August 22, 2008, 4:21pm UTC](https://forum.kirupa.com/t/prevent-local-file-from-caching-when-testing/269105 "2008-08-22T16:21:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DesignerMichael](https://avatars.discourse-cdn.com/v4/letter/d/898d66/32.png) [@DesignerMichael](https://forum.kirupa.com/u/DesignerMichael)\
**Post date:** [August 22, 2008, 4:21pm UTC](https://forum.kirupa.com/t/prevent-local-file-from-caching-when-testing/269105/1 "2008-08-22T16:21:55Z")

</div>

How do you prevent a local file from caching when testing? Eg, on the web its easy…

var request:URLRequest = new URLRequest("…/flash/battleTanks.swf?" + Rand);

Windows throws a url not found with anything I try…

var request:URLRequest = new URLRequest("…/battleTanks.swf\*");  
var request:URLRequest = new URLRequest("…/battleTanks.swf?" + Rand);
