I’m not too sure about that, but I guess that depends (if you’re processing images, it is a big win to cache also on Netlify). Hugo detects if you’re running on Netlify and sets the cache dir (if not set by you) to a Netlify path that survives builds.
There are several options:
- set cacheDir to something else (either as a flag or via a separate dev/prod config, see the section about config dirs in the docs )
- turn off caching