The answer to your question depends on the answer to this question:
Do you have retention requirements for the generated Excel file?
If you do not have any requirements to keep or maintain the Excel file and each download is unique, you owe it to yourself to keep it ephemeral. In short, it should be generated each time it is requested.
As I mentioned, ...