How to clear browser cache?

I have an app that serves a file to be downloded by a a link. It is working fine but with Chrome and Edge the file gets cached and even if the saved file changes the downloaded one is not changing. If I clear the browser cache it is working fine again.

I tested in Firefox and there’s no such problem.

Is there a way to force to clear the browser cache from the code?