# How to prevent caching of swf files?

**URL:** https://forum.kirupa.com/t/how-to-prevent-caching-of-swf-files/247938
**Category:** flash
**Created:** [January 2, 2008, 2:24am UTC](https://forum.kirupa.com/t/how-to-prevent-caching-of-swf-files/247938 "2008-01-02T02:24:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![adchica](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@adchica](https://forum.kirupa.com/u/adchica)
#### Post date: [January 2, 2008, 2:24am UTC](https://forum.kirupa.com/t/how-to-prevent-caching-of-swf-files/247938/1 "2008-01-02T02:24:26Z")

</div>

I’ve searched everywhere for a way to prevent the caching of my swf files. The last thing I tried using is the ‘Expires’ header and the Pragma no-cache header suggested by Adobe ([http://kb.adobe.com/selfservice/viewContent.do?externalId=tn\_14743](http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14743)). It sounded like a good solution but it still didn’t work for me. Has anyone found a reliable way of doing this? Can this be done using ActionScript?

I’m running Flash 8 and exporting to Flash Player 6. The browsers I’m testing in are IE 6, 7, and Firefox. Thanks in advance!
