# Turbo returning cached version with importmaps

**URL:** https://discuss.hotwired.dev/t/turbo-returning-cached-version-with-importmaps/3227
**Category:** General
**Created:** [September 11, 2021, 8:37am UTC](https://discuss.hotwired.dev/t/turbo-returning-cached-version-with-importmaps/3227 "2021-09-11T08:37:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![arjunrajkumar](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/arjunrajkumar/32/884_2.png) [@arjunrajkumar](https://discuss.hotwired.dev/u/arjunrajkumar)
#### Post date: [September 11, 2021, 8:37am UTC](https://discuss.hotwired.dev/t/turbo-returning-cached-version-with-importmaps/3227/1 "2021-09-11T08:37:31Z")

</div>

Anyone else seeing Turbo always returning first a cached version of the page when using Hotwire with Importmaps?

Tried adding a data-turbo-cache: false around the individual element, but still getting cached.

---

<div class="post-metadata">

### Author: ![arjunrajkumar](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/arjunrajkumar/32/884_2.png) [@arjunrajkumar](https://discuss.hotwired.dev/u/arjunrajkumar)
#### Post date: [September 14, 2021, 5:17am UTC](https://discuss.hotwired.dev/t/turbo-returning-cached-version-with-importmaps/3227/2 "2021-09-14T05:17:37Z")

</div>

Saw in the docs that there is a way to opt out of cache by adding this

`<meta name="turbo-cache-control" content="no-cache">`

Thanks

---

<div class="post-metadata">

### Author: ![tleish](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/tleish/32/920_2.png) [@tleish](https://discuss.hotwired.dev/u/tleish)
#### Post date: [September 14, 2021, 2:24pm UTC](https://discuss.hotwired.dev/t/turbo-returning-cached-version-with-importmaps/3227/3 "2021-09-14T14:24:40Z")

</div>

I haven’t tried importmaps yet, but does annotating `data-turbo-track="reload"` to your importmap script resolve the caching?

```javascript
<script type="importmap" data-turbo-track="reload">
{
  "imports": {
    "moment": "/node_modules/moment/src/moment.js",
    "lodash": "/node_modules/lodash-es/lodash.js"
  }
}
</script>

```

see: [Reloading When Assets Change](https://turbo.hotwired.dev/handbook/drive#reloading-when-assets-change)
