24
rated 0 times
[
28]
[
4]
/ answers: 1 / hits: 6686
/ 2 Years ago, thu, march 3, 2022, 12:00:00
We have few pages and components as server side rendering.
We were trying to use cache for few API responses.
export async function getServerSideProps(context) {
const res = await getRequest(API.home)
return {
props: {
"home": res?.data?.result
},
}
}
Next.js version is 11.1.
Here can someone please suggest how can we implement cache?
More From » next.js