Caching breaking Page and PDF Links

For some reason, since moving to Cloudflare, occasionally pages and links to PDF’s that exist will break in the cache and everyone will get redirected to the site’s home page. Clearing the cache fixes it, but I don’t have a clue what’s causing it to happen.