If it’s a text file, perhaps you could also serve it via a worker.
Or if you have an origin server, is it something you can host there and set a long expiration date (if the file does not change) for the standard proxied hostname to have Cloudflare cache it?