# Cacheing iFramed Kibana static content

**URL:** <https://discuss.elastic.co/t/cacheing-iframed-kibana-static-content/44204>\
**Category:** Kibana\
**Created:** [March 11, 2016, 9:50pm UTC](https://discuss.elastic.co/t/cacheing-iframed-kibana-static-content/44204 "2016-03-11T21:50:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![net](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@net](https://discuss.elastic.co/u/net)\
**Post date:** [March 11, 2016, 9:50pm UTC](https://discuss.elastic.co/t/cacheing-iframed-kibana-static-content/44204/1 "2016-03-11T21:50:55Z")

</div>

Hi,

I'm looking for a way to speed up loading the kibana dashboard. On my site I let the users click a checkbox which will change the dashboard url and refresh the embedded dashboard. I'm looking through files that are downloaded each time:

commons.style.css?v=9693  
kibana.style.css?v=9693  
commons.bundle.js?v=9693  
kibana.bundle.js?v=9693

what files can I cache safely? What way do you recommend to do this?

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [March 11, 2016, 11:21pm UTC](https://discuss.elastic.co/t/cacheing-iframed-kibana-static-content/44204/2 "2016-03-11T23:21:12Z")

</div>

You could cache any of these safely, they should only change if you modify the Kibana source files or install a new version of Kibana. You could probably accomplish this by setting up a reverse proxy with nginx or some other tool like it. We should really be setting proper cache-control headers on these responses though, so I also created a ticket for it: [https://github.com/elastic/kibana/issues/6520](https://github.com/elastic/kibana/issues/6520)

---

<div class="post-metadata">

**Author:** ![net](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@net](https://discuss.elastic.co/u/net)\
**Post date:** [March 12, 2016, 12:21am UTC](https://discuss.elastic.co/t/cacheing-iframed-kibana-static-content/44204/3 "2016-03-12T00:21:13Z")

</div>

Thanks. Initially I was looking for a way to cache these and came across using the apache cache mod on my reverse proxy. Then I looked at the headers that kibana was sending over on those and saw they were set to no-cache. So I looked at the source to see about changing from no-cache to an expiration. Before all that I decided to post here. Good to see I'm on the right track.

I'll keep an eye on that issue. When do you think they might fix it? Could it be before the next minor version since its a small bug fix. I know there's priorities and everything but it would be useful for a lot of people since those two bundle files make up 6 MB and there's more static files that can be cached.

Thanks.

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [March 14, 2016, 2:55pm UTC](https://discuss.elastic.co/t/cacheing-iframed-kibana-static-content/44204/4 "2016-03-14T14:55:08Z")

</div>

I doubt it'll be fixed before 5.0 unfortunately, there are a lot of higher priority items between now and then. It could possibly get backported to a 4.x minor release, but I wouldn't guarantee it. Pull requests are welcome of course 😁 it might actually be easier to fix this upstream than to set up an nginx proxy.

---

<div class="post-metadata">

**Author:** ![net](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@net](https://discuss.elastic.co/u/net)\
**Post date:** [March 21, 2016, 7:19pm UTC](https://discuss.elastic.co/t/cacheing-iframed-kibana-static-content/44204/5 "2016-03-21T19:19:45Z")

</div>

i looked into apache caching and since the files have a query at the end of it I couldn't do it

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:58pm UTC](https://discuss.elastic.co/t/cacheing-iframed-kibana-static-content/44204/6 "2017-07-06T13:58:23Z")

</div>


