Can someone suggest on this? I have a rest api running serverless functions and infront of it have NGINX acts as a reverse proxy. For caching API Get requests and purging as needed, what would be the best way to do?
1. Caching at CDN (but purging seems to be not recommended often - my content can change for every few hours but not sure about the exact time. So need to purge cache anytime
2. Caching at NGINX level - If so please suggest whats the best approach
3. Caching at application level where each request hits the cloud functions (which I'm not happy though due to cold starts)