# Netlify builds earlier version

**URL:** <https://forum.builder.io/t/netlify-builds-earlier-version/2665>\
**Category:** Technical Questions\
**Tags:** gatsby\
**Created:** [September 23, 2022, 8:37pm UTC](https://forum.builder.io/t/netlify-builds-earlier-version/2665 "2022-09-23T20:37:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iohan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/iohan/32/2040_2.png) [@iohan](https://forum.builder.io/u/iohan)\
**Post date:** [September 23, 2022, 8:37pm UTC](https://forum.builder.io/t/netlify-builds-earlier-version/2665/1 "2022-09-23T20:37:44Z")

</div>

I have a Gatsby-site working with Builder and Netlify.  
Netlify builds the site with no problem using webhooks inside of Builder.

The problem is that when I hit publish inside of Builder it triggers a new build on Netlify but it’s not the recent changes I’ve made, it’s the changes I published before the recent ones.  
What might cause this? Caching?

When building my site I clean the cache everytime with gatsby clean.

Example of what I mean

**INSIDE BUILDER**

1. _[Earlier edits made to a content]_
2. Opening upp content and changing for example the font-color of the header to red.
3. Hit publish.
4. Netlify builds with no problem.
5. Visiting the live-site showing only the earlier edits made to the page. Not the font-color set to red.
6. Going back into builder and switching the font-color to green this time.
7. Hit publish.
8. Once again, netlify builds with no problem and when I visit my site, the font-color of the header are now showing red and not green as it’s supposed to. Meaning it took a previous version and uploaded.

Why is it that I can’t see the recent changes?

If i hit Trigger Deploy inside of netlify, the recent changes are now showing.

Should I set up Gatsby differently so It always gets the latest json from Builder?

Hope you understand my problem.  
Thank you!

---

<div class="post-metadata">

**Author:** ![ancheetah](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/ancheetah/32/751_2.png) [@ancheetah](https://forum.builder.io/u/ancheetah)\
**Post date:** [September 23, 2022, 9:09pm UTC](https://forum.builder.io/t/netlify-builds-earlier-version/2665/2 "2022-09-23T21:09:49Z")

</div>

Hi @iohan , welcome to the forum! Are you busting the Builder cache when you query content? You can take a look at [this](https://github.com/BuilderIO/gatsby-starter-builder/blob/master/src/templates/LandingPage.jsx#L44) starter to see how to pass `cachebust` to `options`. If you are using the latest version of the `@builder.io/gatsby` plugin then there is also a `useCache` option you can read about [here](https://github.com/BuilderIO/builder/blob/main/packages/gatsby/README.md?plain=1#L25-L27) that should be `false` by default so make sure that it is not set to `true`.

---

<div class="post-metadata">

**Author:** ![iohan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/iohan/32/2040_2.png) [@iohan](https://forum.builder.io/u/iohan)\
**Post date:** [September 24, 2022, 5:21pm UTC](https://forum.builder.io/t/netlify-builds-earlier-version/2665/3 "2022-09-24T17:21:01Z")

</div>

Thank you for fast reply.  
The _ **cachebust** _ fixed my issue.
