'How do I set cache-control and pragma in my mern app?

I'm trying to set 'Cache-Control' to 'no store' and 'Pragma' to 'no-cache' in my MERN app, but I have no idea where I'm supposed to do this.

Does anyone know where I should do this to prevent so my application returns caching directives instructing browsers not to store local copies of any sensitive data?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source