# Static cache not caching

**URL:** <https://community.fly.io/t/static-cache-not-caching/2245>\
**Category:** General\
**Created:** [August 18, 2021, 3:41pm UTC](https://community.fly.io/t/static-cache-not-caching/2245 "2021-08-18T15:41:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewford](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/matthewford/32/667_2.png) [@matthewford](https://community.fly.io/u/matthewford)\
**Post date:** [August 18, 2021, 3:41pm UTC](https://community.fly.io/t/static-cache-not-caching/2245/1 "2021-08-18T15:41:22Z")

</div>

Hi,

I’ve set up a caching in my app here is a test url: [https://dev.electives.net/img/splash/how-it-works-1.jpg](https://dev.electives.net/img/splash/how-it-works-1.jpg) it seems that the headers are set correctly, but i’m still getting a cache miss.

 ![Screenshot 2021-08-18 at 16.37.42](https://global.discourse-cdn.com/fly1/original/3X/e/f/efd6e72685976e217d3027ee77af968dcc39b4e8.png)

The file is on this path (its a mounted volume if that makes a difference)

```auto
pwd how-it-works-1.jpg
/code/public/img/splash

```

And here is the toml file:

```auto
[[statics]]
  guest_path = "/code/public/img"
  url_prefix = "/img"

```

Any ideas on why it keeps reporting a cache miss?

---

<div class="post-metadata">

**Author:** ![kurt](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/kurt/32/43757_2.png) [@kurt](https://community.fly.io/u/kurt)\
**Post date:** [August 18, 2021, 4:29pm UTC](https://community.fly.io/t/static-cache-not-caching/2245/2 "2021-08-18T16:29:19Z")

</div>

Ah, we don’t do normal HTTP caching (like from volumes). The `[statics]` are designed specifically for assets that are bundled as part of a full stack app. When you deploy an app with statics, we extract the files from the Docker image itself and handle them separately.

We’ll probably need to have HTTP caching-like-a-CDN someday. For now, the best way to solve this is to either deploy an [nginx app that does caching](https://github.com/fly-apps/nginx), or put a traditional CDN in front of your app.

---

<div class="post-metadata">

**Author:** ![matthewford](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/matthewford/32/667_2.png) [@matthewford](https://community.fly.io/u/matthewford)\
**Post date:** [August 18, 2021, 5:24pm UTC](https://community.fly.io/t/static-cache-not-caching/2245/3 "2021-08-18T17:24:01Z")

</div>

ohh, ok. I’m removing the folder in the docker image so I can mount the drive. It’s ok I’ll front it with nginx.
