next.js - How to avoid running getServerSideProps on client side routing? - Stack Overflow

I am using getServerSideProps to improve SEO. So if someone access the route directly all the content s

I am using getServerSideProps to improve SEO. So if someone access the route directly all the content should be delivered in the server request. But in case i am navigating to that site via next/link or router.push I want to avoid getServerSideProps and load the data in the client or retrieve it from the client cache. I already read a lot about this, but I did not find any satisfying solution.

Thanks for any help :)

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745309440a4621913.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信