I'm incorrectly *not* getting a 404 on some fetch requests. How do I get 404s?

I have code that fetches files with extensions -- and that works great, but when a file is missing, I get the index.html page. I believe this to be wrong behavior. Is there a way to fix, or is this a bug with cloudflare? ๐Ÿ˜…
Was this page helpful?