after some unknown implementation in the server (this is done by them), every time output buffer is filled with garbage data. so before each download clear buffer will solve the problem. problem solved on the existing server without any impact.
- Cleared the ob and start a new header on each action, every time.
- No Downtime is needed.
- No need to migrate to the New version of PHP7.4.
