大网数据广告活动
网站运营与故障问答

Will Google Searchbot SEO also crawl my content APIs? Or do I really need nextjs SSR?

· 52CE 我爱测

I am building a social media blog react website (basically like Medium.com) with virtual routing. E.g if user visits my-website.com/user456/post478 react will make an API Call to my cloud function to retrieve post478 of user456 f…

问题原文

原帖链接 · Juri · CC BY-SA 4.0

I am building a social media blog react website (basically like Medium.com) with virtual routing. E.g if user visits my-website.com/user456/post478 react will make an API Call to my cloud function to retrieve post478 of user456 from my BigTable DB. And then render it.

Is the Google SEO Indexing able to crawl this API while indexing the link? It's very important to me that it crawls it, because of SEO.

If it doesn't crawl, how can I solve that problem? Using nextjs SSR would be an option, but it's pretty cost/processing intensive. React-Helmet is also not really an option since the content will be crawled again by an API, since it's user generated.

Instead of storing the post in my BigTable DB, maybe I shall upload it as a static .json file to cloud-storage? But if my react app fetches the cloud function it will basically return user456post478.json , and if I just retrieve from cloud storage I will also get user456post478.json get.

The only difference is, that retrieving the user456post478.json from cloud-storage (with CDN) will be very much faster than getting it from my cloud function. is that the hitting key point for moving the content to static .json files instead of saving it in my BigTable DB?

Should I maybe somehow host the .json file to Firebase Hosting instead of Cloud Storage? But then I will end up storing 99999999 .json files in Firebase Hosting (because the files are user generated and with every day new ones will be uploaded). Is that OK? Does it make even a difference, storing the stuff on Hosting vs Storage? The only difference that I can think of, is that if it's stored on Hosting, and is a dependency, it will get directly delivered with the index.html, is that true? But how to make it a dependency? I need some kind of logic or not? Since there will be 999999 json files and not everyone can be a dependency (since it will be 100GB big after time).

已采纳解答

原帖链接 · Jake 1986 · CC BY-SA 4.0

Googlebot is able to crawl content that is rendered via requests to an API. Server-side rendering, as far as I understand it, is not needed for Googlebot to crawl the page content, but for speed enhancement.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2021-04-16)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。