Caching the response from Sling Model, Sling Servlet
Hello Team,
1: Caching sling model response:
From my sling model, I am hitting the 3rd party API. (API response will be same for, say 1 week). So, is it possible to cache the sling model response?
From this article(also from few other articles), caching from sling model is not the right way.
2: Caching sling servlet response: I heard, response from sling servlet is cacheable. If yes, I need to mention anything in sling servlet class, Dispatcher?
3: Caching the response from 3rd party API: What is the best way to cache the response from the 3rd party. I know that 3rd party API response is constant for 1 week. Even, if the API response changes for every day, I dont mind. Still will use the cached response for a week.