How to change & maximize the cache durations with getStaticProps() function
Unanswered
Masai Lion posted this in #help-forum
Masai LionOP
Hi Team,
I have some question regarding to the cache duration. Is there some way to change and adjust the Cache duration policy when generating static page and assets with getStaticProps() function. I have read the documentation on website but theres only available for the getServerSideProps({ req, res }) function only. I wonder how to use the Cache control in getStaticProps().
Thanks
I have some question regarding to the cache duration. Is there some way to change and adjust the Cache duration policy when generating static page and assets with getStaticProps() function. I have read the documentation on website but theres only available for the getServerSideProps({ req, res }) function only. I wonder how to use the Cache control in getStaticProps().
Thanks
4 Replies
Masai LionOP
I have tries to add the header and cache control inside the fetch function but look like it still not works
Pagespeed still said that the cache TTL is still in default 30 day
it is asking you to increase the cache for the mp4 file on cloudinary
Masai LionOP
Thanks, so its something that defined in the Cloudinary and not from the Next.js.