My understanding of 404's on cloudflare pages is that you set up your 404.shtml/html in the root of your project, and cloudflare designates that as a global route on the backend with no other work needed to serve 404's. So say I only have an index.html on example.com, and I go to example.com/fart, it will give me a 404 just fine. I have noticed an issue with multiple projects now, where the 404 at the root will not apply to directories on my pages projects, so if I go to example.com/fart/index.html (which doesnt exist) ill get a broken 404 that doesnt fully load with the assets/etc ive defined in the 404 at the root.
Ive tried clearing cache, ive manually set up the 404 in that directory and it starts working after purging the cache, so is that the way I have to do things? I have to have a 404 set up per web page directory??