搜索引擎会对 JSON 结果建立索引吗?
我想将 JSON(其中少量是动态的)从 mixcloud 传递到我的播客网站
我的问题是搜索引擎在访问我的页面时是否会索引从 mixcloud 发送的任何内容
内容的某些元素将是页面的决定性内容,例如曲目名称,它将永远保持不变,并且因为我希望坚持 DRY 原则,所以我只想在 mixcloud 上输入它们(因此是 JSON)
我读过 < a href="https://stackoverflow.com/questions/826275/can-search-engines-index-javascript- generated-web-pages">这篇文章但是我的页面不是JS生成的,只有一些我的内容是
该网站在 Rails 上运行,所以它是 RESTful 的,是的,我很高兴不向禁用 JS 的人显示曲目名称,所以我只是想知道是否有机会能够索引我的 AJAX 内容,谢谢
I want to pass JSON (a small amount of which will be dynamic) from mixcloud to my podcast website
My question regards whether or not search engines will index any of the content that is sent from mixcloud when they hit my page
Certain elements of the content will be definitive to the page such as track-names, which will remain constant for ever, and since I'm, looking to stick to DRY principles, I only want to enter them on mixcloud (hence the JSON)
I've read this article but my pages are not JS generated, only some of my content is
The site runs on rails so it's RESTful and yes I'm happy to just not display tracknames to people who have JS disabled so i'm only really looking to know if there's any chance of being able to index my AJAX content thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
由于您从 MixCloud 获取数据,搜索引擎将为其原始网站 (MixCloud) 而不是您的网站索引 JSON。
您可以通过从服务器上的 MixCloud 读取 feed/JSON 来获取为您的网站编制索引的内容,对其进行解析并将其显示为页面 HTML 的一部分。您也可以将其缓存在您的服务器上。
恕我直言,这是显示提要(Twitter、MixCloud、TripAdvisor、FaceBook 等)的更好方法,因为它不会因对外部 javascript 文件的大量不必要的请求而使页面变得混乱。让服务器完成工作,节省带宽并加快页面加载时间和响应速度:)
Since you are getting the data from MixCloud Search Engines will index the JSON for its originating website (MixCloud) and not your website.
You can get the content indexed for your website by reading the feed/JSON from MixCloud on your server, parse it and display it as part of the HTML of your page. You could cache it on your server as well.
IMHO this is a better way to display feeds (Twitter, MixCloud, TripAdvisor, FaceBook etc) as it doesn't clutter the page with a lot of unnecessary requests to external javascript files. Let the server do the work, save bandwidth and speed up your page load time and responsiveness :)
搜索引擎(或您页面的任何访问者)可以对呈现的内容进行索引;也就是说,Firefox 所说的都是该页面的源代码。
Search engines (or any visitor of your page) can index wha gets rendered; that is, whatever Firefox says is the source code for the page.