# Swfs not caching

**URL:** https://forum.kirupa.com/t/swfs-not-caching/23066
**Category:** Uncategorized
**Created:** [June 12, 2003, 12:48pm UTC](https://forum.kirupa.com/t/swfs-not-caching/23066 "2003-06-12T12:48:24Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![souldiva](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@souldiva](https://forum.kirupa.com/u/souldiva)
#### Post date: [June 12, 2003, 12:48pm UTC](https://forum.kirupa.com/t/swfs-not-caching/23066/1 "2003-06-12T12:48:24Z")

</div>

Hi there

I’ve got several swf’s loading into my main movie and i want them to get cached so they don’t have to download again… but it’s not doing this automatically. Do i have to put omething in the meta tags on the html page?

Thanks x

---

<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: [June 12, 2003, 12:58pm UTC](https://forum.kirupa.com/t/swfs-not-caching/23066/2 "2003-06-12T12:58:23Z")

</div>

swfs should always be cached regardless of how/where they’re loaded. what makes you think that they’re not being cached?

---

<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: [June 12, 2003, 1:03pm UTC](https://forum.kirupa.com/t/swfs-not-caching/23066/3 "2003-06-12T13:03:10Z")

</div>

because i’ve got preloaders at the start of the movies which always come on… if the movies cached shouldn’t it load straight away without the preloade? Or am i bein daft?

---

<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: [June 12, 2003, 2:04pm UTC](https://forum.kirupa.com/t/swfs-not-caching/23066/4 "2003-06-12T14:04:30Z")

</div>

well, the preloader _will_ show up, but since the movie would be loaded, it would just fly through it.

---

<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: [June 12, 2003, 3:00pm UTC](https://forum.kirupa.com/t/swfs-not-caching/23066/5 "2003-06-12T15:00:57Z")

</div>

You could test at the very begining of the movie

```auto
if (this.getBytesLoaded() >= this.getBytesTotal() && this.getBytesLoaded() > 0){
// skip preloader
}

```

---

<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: [June 13, 2003, 9:36am UTC](https://forum.kirupa.com/t/swfs-not-caching/23066/6 "2003-06-13T09:36:01Z")

</div>

The preloaders take just as long the second time you view the swf’s, that’s why i think they’re not being cached!  
I agree they should be cached automatically, but they’re not???
