Hello, I am having problems with the cache although I really do not know if it is this, when I visit the application that I do sometimes it shows previous versions.
This is how my project works:
- I have a netlify site with a generator function
https://on-demand-gix-ec-business.netlify.app/.netlify/builders/generator
1.1 This function has an internal redirect
/* /.netlify/functions/generate 200
1.2 A example:
https://on-demand-gix-ec-business.netlify.app/motransa/2884/#/
I have a call to a trigger that makes a construction when some of the data that the application depends on changes. In order to invalidate the builders cache
- I have a second site that redirects to this site (https://gix.netlify.app) but with a country prefix
/ec/* https://on-demand-gix-ec-business.netlify.app/:splat 200!
example: https://gix.netlify.app/ec/motransa/2884/
The problem:
When invalidating cache of the main site with the function under demand, and when visiting it from the secondary site there is inconsistency, I do not know if it is cache, or the CDN that is not returning previous versions.
I do not understand why this is. The expected behavior is that when invalidating the cache of the site with the generator function, and when visiting it from the site to do redirection, it shows me the latest version with the latest changes. Instead it is returning old versions at random.
I have no problems when visiting the main site that has the function under demand.
- Original route generated under demand : https://on-demand-gix-ec-business.netlify.app/motransa/2884/#/
- Routes from secondary site: https://gix.netlify.app/ec/motransa/2884/#/
Is it redirect, cache, load balancer?