# Making external text files expire?

**URL:** <https://forum.kirupa.com/t/making-external-text-files-expire/65061>\
**Category:** flash\
**Created:** [September 22, 2004, 6:10pm UTC](https://forum.kirupa.com/t/making-external-text-files-expire/65061 "2004-09-22T18:10:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![JP\_West](https://avatars.discourse-cdn.com/v4/letter/j/ac8455/32.png) [@JP\_West](https://forum.kirupa.com/u/JP_West)\
**Post date:** [September 22, 2004, 6:10pm UTC](https://forum.kirupa.com/t/making-external-text-files-expire/65061/1 "2004-09-22T18:10:58Z")

</div>

I’m loading an external text file into my MC, I can get that to work perfectly… but the problem lies in the the browser caching the text and thusly not displaying changes made to the file.

How do I make my text files expire in the browser cache, or failing that force the browser to either reload the file or not cache it in the first place?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 22, 2004, 6:13pm UTC](https://forum.kirupa.com/t/making-external-text-files-expire/65061/2 "2004-09-22T18:13:44Z")

</div>

[http://www.flashguru.co.uk/000023.php](http://www.flashguru.co.uk/000023.php)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 22, 2004, 6:16pm UTC](https://forum.kirupa.com/t/making-external-text-files-expire/65061/3 "2004-09-22T18:16:36Z")

</div>

How does that work in terms of a text file? Will I have to append anything onto the filename itself?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 22, 2004, 6:32pm UTC](https://forum.kirupa.com/t/making-external-text-files-expire/65061/4 "2004-09-22T18:32:12Z")

</div>

It would work the same way I guess, except [http://www.flashguru.co.uk/myscript.php](http://www.flashguru.co.uk/myscript.php) you use [http://www.yourdomain.com/yourfile.txt](http://www.yourdomain.com/yourfile.txt). Don’t know for sure if this works for txt files though, but you’re about to find out 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 22, 2004, 7:15pm UTC](https://forum.kirupa.com/t/making-external-text-files-expire/65061/5 "2004-09-22T19:15:54Z")

</div>

I’m pretty sure if you request using filetxt.txt?unique=unique it should work.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 22, 2004, 11:27pm UTC](https://forum.kirupa.com/t/making-external-text-files-expire/65061/6 "2004-09-22T23:27:19Z")

</div>

Thanks, seems to be working now… will check with visitors soon to see if there is an improvement.

I’d seen the time/date solution before… but it had never worked, strange…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 23, 2004, 1:19am UTC](https://forum.kirupa.com/t/making-external-text-files-expire/65061/7 "2004-09-23T01:19:29Z")

</div>

**FOLLOW UP**

Will the browser cache my .swf’s as well? Shall I add the unique tag to all of my loaded external files? (im using loadMovie to bring in external flash files)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 23, 2004, 10:15pm UTC](https://forum.kirupa.com/t/making-external-text-files-expire/65061/8 "2004-09-23T22:15:13Z")

</div>

definatley

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 24, 2004, 9:29am UTC](https://forum.kirupa.com/t/making-external-text-files-expire/65061/9 "2004-09-24T09:29:42Z")

</div>

OK then. Done.

Thanks.
