We have implemented server-side rendering for a few pages and components.
In an attempt to optimize performance, we have been experimenting with caching API responses.
export async function getServerSideProps(context) {
const res = await getRequest(API.home)
return {
props: {
"home": res?.data?.result
},
}
}
We are currently using Next.js version 11.1.
We are seeking suggestions on how to effectively implement caching in our setup. Can anyone provide guidance?