We have an Angular app running on Google Cloud. Up until a few days ago each time we deployed a new build after a hard refresh the new version was stable immediately.
Now when we deploy, Cloudflare is retaining old javascript runtime files in the cache and so even after a hard refresh their is a mismatch and so the site shows blank.
I have tried:
Purging the cache in Cloudflare
Clearing the cache in browser
Hard reloads
It seems to be intermittent making me think it is serving some instances of the new build and some of the old??
Files don’t propagate at Cloudflare like they do at Push CDNs. But the command to flush could have taken a little longer to propagate. But since I dont have any info, nor evidence for this I can’t say that this was the case.
In this community we do not ask/request any access to any application. So that’s something we normally don’t do.
But feel free to provide screenshots to explain things and I will try to assist you.
Something that shows what you do and what you would expect, then what the actual situation is.
Great - I will take a loom video next time this happens and show you the page source as the runtime js files were being served from the cache wrongly after the build. Be easier to show you what I mean.
Thansk, that would be great. Please include/show the headers, of the “wrong cache” aswell, since this would give some insights about what is causing that and helps to debug it.