I have an NestJS REST api and noticed that Cache-Control header is not sent. I am not sure if i miss something with nestjs but asking google how to cache REST API get response with nestjs only leads me to NestJs cache manager which is on server in memory cachig. So I have couple of questions:
- Is it not common to cache REST API data responses
- Should I set @Header('Cache-Control', '..?') explicitly
- Maybe it is better to cache on the client? (I know about data validity - data is not changing I am talking about articles)
Thanks for the answers