# Caching Elm Downloads on Netlify Builds (Reprise)

**URL:** <https://discourse.elm-lang.org/t/caching-elm-downloads-on-netlify-builds-reprise/5923>\
**Category:** Show and Tell\
**Created:** [June 13, 2020, 3:49am UTC](https://discourse.elm-lang.org/t/caching-elm-downloads-on-netlify-builds-reprise/5923 "2020-06-13T03:49:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirkbj](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/dirkbj/32/3162_2.png) [@dirkbj](https://discourse.elm-lang.org/u/dirkbj)\
**Post date:** [June 13, 2020, 3:49am UTC](https://discourse.elm-lang.org/t/caching-elm-downloads-on-netlify-builds-reprise/5923/1 "2020-06-13T03:49:52Z")

</div>

All,

There have recently been changes to the Netlify build system, and [Dillon’s recommendation for caching Elm packages](https://discourse.elm-lang.org/t/caching-elm-downloads-on-netlify-builds/5077) no longer works.

They now have a [generic caching npm package](https://github.com/jakejarvis/netlify-plugin-cache) that you can use. For example, this is how the netlify.toml file looks in my projects:

```
[build]
  publish = "dist"
  command = "export ELM_HOME=\"elm-stuff\" && npm run build"
  

[[plugins]]
package = "netlify-plugin-cache"
  [plugins.inputs]
  paths = ["elm-stuff"]
```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)\
**Post date:** [June 23, 2020, 3:49am UTC](https://discourse.elm-lang.org/t/caching-elm-downloads-on-netlify-builds-reprise/5923/2 "2020-06-23T03:49:54Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
