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
- [Earlier edits made to a content]
- Opening upp content and changing for example the font-color of the header to red.
- Hit publish.
- Netlify builds with no problem.
- Visiting the live-site showing only the earlier edits made to the page. Not the font-color set to red.
- Going back into builder and switching the font-color to green this time.
- Hit publish.
- 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!